diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-12-23 00:15:40 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-12-23 00:15:40 +0000 |
commit | 6e7dacd3a82d2de6a1cf25694d13ff3b9a86c506 (patch) | |
tree | b8e15b9dc42827e826541dcb5ce49d86b49fe167 /sonar-server/src/main | |
parent | 1b9e5dbd00d8c13328a3add55e734f6fc9044c2c (diff) | |
download | sonarqube-6e7dacd3a82d2de6a1cf25694d13ff3b9a86c506.tar.gz sonarqube-6e7dacd3a82d2de6a1cf25694d13ff3b9a86c506.zip |
update labels of variation select boxes
Diffstat (limited to 'sonar-server/src/main')
7 files changed, 17 insertions, 16 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb index 184f74aa749..a62478a85fc 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb @@ -83,13 +83,13 @@ module ApplicationHelper label=nil if mode if mode=='days' - label = "%s days ago" % mode_param + label = "over %s days" % mode_param elsif mode=='version' - label = "Version %s" % mode_param + label = "since version %s" % mode_param elsif mode=='previous_analysis' - label = "Previous analysis (%s)" % localize(Date.parse(mode_param)) + label = "since previous analysis (%s)" % localize(Date.parse(mode_param)) elsif mode=='date' - label = "Date: #{localize(Date.parse(mode_param))}" + label = "since #{localize(Date.parse(mode_param))}" end end label diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb index b6473f95dee..90b920a0174 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/dashboard_helper.rb @@ -32,7 +32,7 @@ module DashboardHelper label=period_label(snapshot, index) if label selected=(params[:period]==index.to_s ? 'selected' : '') - "<option value='#{index}' #{selected}>#{label}</option>" + "<option value='#{index}' #{selected}>Δ #{label}</option>" else nil end diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/drilldown_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/drilldown_helper.rb index 0016d5e7919..8cdfaf522e2 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/drilldown_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/drilldown_helper.rb @@ -26,13 +26,13 @@ module DrilldownHelper if mode if mode=='days' - label = "New violations from %s previous days" % mode_param + label = "Added over %s previous days" % mode_param elsif mode=='version' - label = "New violations since version %s" % mode_param + label = "Added since version %s" % mode_param elsif mode=='previous_analysis' - label = "New violations since previous analysis (%s)" % localize(Date.parse(mode_param)) + label = "Added since previous analysis (%s)" % localize(Date.parse(mode_param)) elsif mode=='date' - label = "New violations since #{localize(Date.parse(mode_param))}" + label = "Added since #{localize(Date.parse(mode_param))}" end if label selected=(params[:period]==index.to_s ? 'selected' : '') diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/filters_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/filters_helper.rb index 9ba8ca4c1bf..27f66bda913 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/filters_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/filters_helper.rb @@ -171,14 +171,14 @@ module FiltersHelper def period_name(property) if property=='previous_analysis' - "Compare to previous analysis" + "Δ since previous analysis" elsif property =~ /^[\d]+(\.[\d]+){0,1}$/ # is integer - "Compare to #{property} days ago" + "Δ over #{property} days" elsif property =~ /\d{4}-\d{2}-\d{2}/ - "Compare to #{property}" + "Δ since #{property}" elsif !property.blank? - "Compare to version #{property}" + "Δ since version #{property}" else nil end diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_header.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_header.html.erb index dad5d8ed91a..ce47937e37c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_header.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_header.html.erb @@ -21,7 +21,7 @@ - <form method="GET" action="<%= url_for :only_path=>true, :overwrite_params => {:period => nil} -%>" style="display: inline"> <select id="select-comparison" name="period" onchange="submit()" class="small"> - <option value="">Compare to...</option> + <option value="">Variations...</option> <%= period_select_options(@snapshot, 1) -%> <%= period_select_options(@snapshot, 2) -%> <%= period_select_options(@snapshot, 3) -%> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb index 131eb5227ee..c813c23adaf 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb @@ -111,7 +111,8 @@ </td> </tr> <% end %> - <% if rule_measures.empty? %> + + <% if rule_index==0 %> <tr class="even"><td>No violations</td></tr> <% end %> </table> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb index ebef2d5c6c4..807acc83eb9 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb @@ -4,7 +4,7 @@ <div class="operations"> <form action="<%= url_for :overwrite_params => {:period => nil} -%>" style="display: inline" method="get"> <select name="period" onchange="submit()" class="small"> - <option value="">Compare to...</option> + <option value="">Variations...</option> <% period_names.each_with_index do |name, index| %> <option value="<%= index+1 -%>" <%= 'selected' if @filter_context.period_index==index+1 -%>><%= name -%></value> <% end %> |