aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-12-19 10:46:13 +0100
committerFabrice Bellingard <bellingard@gmail.com>2011-12-19 14:25:24 +0100
commit8a9e343839b56b29534cf303ffa91015a5a72870 (patch)
treea25696a00e15c41a50ccb9d00416dceaade6e742
parent103773c0dc471f92352c970fc4471b64f410894e (diff)
downloadsonarqube-8a9e343839b56b29534cf303ffa91015a5a72870.tar.gz
sonarqube-8a9e343839b56b29534cf303ffa91015a5a72870.zip
SONAR-2662 Make it possible to assign a review to an action plan
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_list.html.erb27
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb3
2 files changed, 15 insertions, 15 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_list.html.erb
index 2c9b0133aa4..1d0a4c81ee6 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_list.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_list.html.erb
@@ -1,21 +1,18 @@
<%
- if @reviews && !@reviews.empty?
+ if params[:from] && params[:to]
+ from = Time.parse(params[:from])
+ to = Time.parse(params[:to])
%>
- <% if @false_positives=='only' %>
- <span class="falsePositive"><%= message('reviews.showing_false_positives_only') -%></span>
- <% 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 %>
+ <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 %>
+ <%
+ if @reviews && !@reviews.empty?
+ %>
<table id="reviews-list" class="data width100">
<thead>
<tr>
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb
index 9c7783e4e0a..99e2f091302 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/index.html.erb
@@ -76,6 +76,9 @@
</table>
<% end %>
+ <% if @false_positives=='only' %>
+ <span class="falsePositive"><%= message('reviews.showing_false_positives_only') -%></span>
+ <% end %>
<%= render :partial => "list" -%>