From 5c8ef50965f7b26fe0f3a00ff9c81ab8afdc256d Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Sun, 9 Dec 2012 20:40:35 +0100 Subject: [PATCH] SONAR-3862 remove the column "key" from the page "All Projects" --- .../main/resources/org/sonar/l10n/core.properties | 1 - .../app/controllers/all_projects_controller.rb | 2 +- .../WEB-INF/app/views/all_projects/index.html.erb | 15 ++------------- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index 667718e805d..9b3b6d22c91 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -500,7 +500,6 @@ reviews.filtered_by.to=To date #------------------------------------------------------------------------------ all-projects.cols.name=Name -all-projects.cols.key=Key #------------------------------------------------------------------------------ diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/all_projects_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/all_projects_controller.rb index 51bb0dace29..60c62124ae7 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/all_projects_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/all_projects_controller.rb @@ -28,7 +28,7 @@ class AllProjectsController < ApplicationController @filter = MeasureFilter.new - @filter.criteria = params.merge({'qualifiers' => [@qualifier], 'cols' => ['name', 'description', 'key', 'links']}) + @filter.criteria = params.merge({'qualifiers' => [@qualifier], :cols => ['name', 'description', 'links'], :sort => 'name'}) @filter.enable_default_display @filter.execute(self, :user => current_user) end diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/all_projects/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/all_projects/index.html.erb index a13cf47b8e4..892def6032b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/all_projects/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/all_projects/index.html.erb @@ -28,7 +28,7 @@ <% display_favourites = logged_in? - colspan = 7 + colspan = 5 colspan += 1 if display_favourites %> @@ -38,20 +38,13 @@ <% if display_favourites %> <% end %> - + <%= link_to_function( message('all-projects.cols.name'), "reloadParameters({asc:'#{(!@filter.sort_asc?).to_s}', sort:'name'})") -%> <% if @filter.sort_key=='name' %> <%= @filter.sort_asc? ? image_tag("asc12.png") : image_tag("desc12.png") -%> <% end %> - - <%= link_to_function( message('all-projects.cols.key'), "reloadParameters({asc:'#{(!@filter.sort_asc?).to_s}', sort:'key'})") -%> - <% if @filter.sort_key=='key' %> - <%= @filter.sort_asc? ? image_tag("asc12.png") : image_tag("desc12.png") -%> - <% end %> - - @@ -68,10 +61,6 @@ <%= qualifier_icon(result.snapshot)-%> <%= link_to(result.snapshot.resource.name(true), {:controller => 'dashboard', :id => result.snapshot.resource_id}, :title => result.snapshot.resource.key) -%> - - <%= result.snapshot.resource.kee -%> - - <%= h result.snapshot.resource.description -%> -- 2.39.5