From 0670007530bbf61ebf40372964e1674ec45bb7d4 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Wed, 5 Dec 2012 12:40:44 +0100 Subject: [PATCH] SONAR-3862 Improve rendering --- .../resources/org/sonar/l10n/core.properties | 2 -- .../WEB-INF/app/views/entities/index.html.erb | 27 +++++++++---------- 2 files changed, 13 insertions(+), 16 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 cbabdb74440..66def548318 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 @@ -504,9 +504,7 @@ reviews.filtered_by.to=To date #------------------------------------------------------------------------------ entities.cols.name=Name -entities.cols.description=Description entities.cols.key=Key -entities.cols.links=Links #------------------------------------------------------------------------------ diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/entities/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/entities/index.html.erb index 5a0782cb89f..08682cd40ae 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/entities/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/entities/index.html.erb @@ -36,29 +36,25 @@ <% if display_favourites %> - + <% end %> - + <%= link_to_function( message('entities.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('entities.cols.description'), "reloadParameters({asc:'#{(!@filter.sort_asc?).to_s}', sort:'description'})") -%> - <% if @filter.sort_key=='description' %> - <%= @filter.sort_asc? ? image_tag("asc12.png") : image_tag("desc12.png") -%> - <% end %> - - <%= link_to_function( message('entities.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 %> - - <%= message('entities.cols.links') -%> - + + + + @@ -71,12 +67,15 @@ <%= 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 -%> - - <%= result.snapshot.resource.kee -%> - + <% if result.links -- 2.39.5