diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-08-09 10:17:36 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-08-09 10:17:36 +0200 |
commit | 254f2271ab9b6e99faf99e92bf5eb324e9dfbf8d (patch) | |
tree | 03a9bf4f889d92c9ba39e713a710676c812d02a1 /sonar-server | |
parent | 3d58102c0564f72a49d6d8a691eabbf760d2d20a (diff) | |
download | sonarqube-254f2271ab9b6e99faf99e92bf5eb324e9dfbf8d.tar.gz sonarqube-254f2271ab9b6e99faf99e92bf5eb324e9dfbf8d.zip |
SONAR-75 fix column titles in the filters page
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/helpers/filters_helper.rb | 2 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/models/filter_column.rb | 4 |
2 files changed, 2 insertions, 4 deletions
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 4f827a2823d..65e19f9fa90 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 @@ -110,9 +110,7 @@ module FiltersHelper end def column_title(column, filter) - html=nil if column.sortable? - asc = (column.descending? || column.sort_direction.nil?) html=link_to h(column.display_name), url_for(:overwrite_params => {:asc => (!(column.ascending?)).to_s, :sort => column.id}) else html=h(column.display_name) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/filter_column.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/filter_column.rb index 2af661559cf..50252c05764 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/filter_column.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/filter_column.rb @@ -39,9 +39,9 @@ class FilterColumn < ActiveRecord::Base def name if on_metric? - Api::Utils.message("metric." + kee + ".name", :default => (metric ? metric.short_name : kee)) + Api::Utils.message("metric.#{kee}.name", :default => (metric ? metric.short_name : kee)) else - Api::Utils.message(family, :default => kee) + Api::Utils.message("filters.col.#{family}", :default => kee) end end |