]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3862 remove the column "key" from the page "All Projects"
authorSimon Brandhof <simon.brandhof@gmail.com>
Sun, 9 Dec 2012 19:40:35 +0000 (20:40 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Sun, 9 Dec 2012 19:40:35 +0000 (20:40 +0100)
plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
sonar-server/src/main/webapp/WEB-INF/app/controllers/all_projects_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/views/all_projects/index.html.erb

index 667718e805d4ecd90f25c411dfc7a669c243b39e..9b3b6d22c9160030f876c1b68a57dadc250b92f4 100644 (file)
@@ -500,7 +500,6 @@ reviews.filtered_by.to=To date
 #------------------------------------------------------------------------------
 
 all-projects.cols.name=Name
-all-projects.cols.key=Key
 
 
 #------------------------------------------------------------------------------
index 51bb0dace29ef456798bf428c36abdf397ab3eb7..60c62124ae7e513ecfcf5486e0b2945d3da647d9 100644 (file)
@@ -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
index a13cf47b8e42a402f9e8a71b643889294ecc0043..892def6032b0eaae4b26fa383970ef4b8184fc58 100644 (file)
@@ -28,7 +28,7 @@
 
     <%
       display_favourites = logged_in?
-      colspan = 7
+      colspan = 5
       colspan += 1 if display_favourites
     %>
 
           <% if display_favourites %>
             <th class="thin" style></th>
           <% end %>
-          <th class="thin">
+          <th class="thin nowrap">
             <%= 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 %>
           </th>
           <th></th>
-          <th>
-            <%= 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 %>
-          </th>
-          <th></th>
           <th></th>
           <th></th>
           <th></th>
               <%= qualifier_icon(result.snapshot)-%> <%= link_to(result.snapshot.resource.name(true), {:controller => 'dashboard', :id => result.snapshot.resource_id}, :title => result.snapshot.resource.key) -%>
             </td>
             <td class="sep"></td>
-            <td class="nowrap">
-              <span class='small'><%= result.snapshot.resource.kee -%></span>
-            </td>
-            <td class="sep"></td>
             <td>
               <%= h result.snapshot.resource.description -%>
             </td>