limit = widget_properties["numberOfLines"].to_i == 0 ? 5 : widget_properties["numberOfLines"].to_i
%>
-<h3><%= message('widget.false_positive_reviews.name') -%></h3>
+<div class="line-block">
+ <div style="float:right">
+ <a href="<%= url_for :controller => 'reviews', :action => 'index', :projects => [@project.id], :false_positives => 'only',
+ :assignee_login => '', :statuses => [''] -%>">
+ <%= message('widgets.more') -%>
+ </a>
+ </div>
+ <h3><%= message('widget.false_positive_reviews.name') -%></h3>
+</div>
<div id="reviews-widget-<%= widget.id -%>">
<%= render :partial => 'project/widgets/reviews/reviews_list',
limit = widget_properties["numberOfLines"].to_i == 0 ? 5 : widget_properties["numberOfLines"].to_i
%>
-<h3><%= message('widget.my_reviews.name') -%></h3>
+<div class="line-block">
+ <div style="float:right">
+ <a href="<%= url_for :controller => 'reviews', :action => 'index', :projects => [@project.id] -%>">
+ <%= message('widgets.more') -%>
+ </a>
+ </div>
+ <h3><%= message('widget.my_reviews.name') -%></h3>
+</div>
<div id="reviews-widget-<%= widget.id -%>">
<%= render :partial => 'project/widgets/reviews/reviews_list',
limit = widget_properties["numberOfLines"].to_i == 0 ? 5 : widget_properties["numberOfLines"].to_i
%>
-<h3><%= message('widget.project_reviews.name') -%></h3>
+<div class="line-block">
+ <div style="float:right">
+ <a href="<%= url_for :controller => 'reviews', :action => 'index', :projects => [@project.id], :assignee_login => '' -%>">
+ <%= message('widgets.more') -%>
+ </a>
+ </div>
+ <h3><%= message('widget.project_reviews.name') -%></h3>
+</div>
<div id="reviews-widget-<%= widget.id -%>">
<%= render :partial => 'project/widgets/reviews/reviews_list',
reviews.only_false_positives=Only false positives
reviews.without_false_positives=Without false positives
reviews.showing_false_positives_only=Showing false positives only
+reviews.reviews_filtered_by_date_x_to_y=Reviews filtered by date: {0} to {1}.
reviews.why_false_positive=Why is it a false-positive ?
reviews.why_not_false_positive=Why is it not a false-positive anymore ?
reviews.user_does_not_exist=\ : user does not exist. \\nPlease select a valid user or leave the field blank.
#
#------------------------------------------------------------------------------
+widgets.more=More
+
widget.alerts.name=Alerts
widget.alerts.description=Display current alerts on the project.
widget.alerts.no_alert=No alerts
widget.project_reviews.name=Project open reviews
widget.project_reviews.description=Shows all the open/reopened reviews.
-widget.false_positive_reviews.name=False positive reviews
+widget.false_positive_reviews.name=Active False Positive Reviews
widget.false_positive_reviews.description=Shows all the false positives found on the project.
widget.reviews_per_developer.name=Open reviews per developer
return
end
- @dashboard_configuration=Api::DashboardConfiguration.new(nil, :period_index => params[:period], :snapshot => @snapshot) if params[:period]
+ @dashboard_configuration=Api::DashboardConfiguration.new(nil, :period_index => params[:period], :snapshot => @snapshot)
render :partial => 'project/widgets/reviews/reviews_list'
end
<%= total_number -%> <%= message('results').downcase -%>
<%
if page_count
+ page_count = 20 if page_count>20
link_params = {}
link_params[:controller] = 'reviews'
link_params[:action] = 'widget_reviews_list'
link_params[:period] = params[:period]
%>
|
- <%=link_to_remote (message('paging_previous'),
+ <%= link_to_remote(message('paging_previous'),
:update => "reviews-widget-#{widget_id}",
:url => {:params => link_params.merge({:page_id => page_id-1})}) if page_id>1 %>
<%= message('paging_previous') unless page_id>1 %>
<% for index in 1..page_count %>
<%= index.to_s if index==page_id %>
- <%=link_to_remote (index.to_s,
+ <%= link_to_remote(index.to_s,
:update => "reviews-widget-#{widget_id}",
:url => {:params => link_params.merge({:page_id => index})}) unless index==page_id %>
<% end %>
- <%=link_to_remote (message('paging_next'),
+ <%= link_to_remote(message('paging_next'),
:update => "reviews-widget-#{widget_id}",
:url => {:params => link_params.merge({:page_id => page_id+1})}) if page_id<page_count %>
<%= message('paging_next') unless page_id<page_count %>
if @reviews && !@reviews.empty?
%>
<% if @false_positives=='only' %>
- <div style="color:#777777; font-size:93%; padding: 4px 0px 4px 10px;"><span class="falsePositive"><%= message('reviews.showing_false_positives_only') -%></span></div>
+ <div style="color:#777777; font-size:93%; padding: 4px 0px 4px 10px;"><span class="falsePositive"><%= message('reviews.showing_false_positives_only') -%></span></div>
<% end %>
+ <%
+ if params[:from] && params[:to]
+ from = Time.parse(params[:from])
+ to = Time.parse(params[:to])
+ %>
+ <div style="color:#777777; font-size:93%; padding: 4px 0px 4px 10px;">
+ <span style="background-color: #FFF6BF; padding-left: 5px; padding-right: 5px;">
+ <%= message('reviews.reviews_filtered_by_date_x_to_y', :params => [l(from, :format => '%d %B %Y'), l(to, :format => '%d %B %Y')] ) -%>
+ </span>
+ </div>
+ <% end %>
+
<table id="reviews-list" class="data width100">
<thead>
<tr>