From 5e6fcf8ba43b0e9e8bbf1ad39498da92fcfbbca3 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Thu, 21 Jul 2011 10:00:08 +0200 Subject: SONAR-2589 Modification of all web ruby templates to use bundles - Display widget title and description from metadata if I18n keys not available --- .../webapp/WEB-INF/app/views/dashboard/_widget_definition.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_definition.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_definition.html.erb index 345f89f10d5..c911a8c0e35 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_definition.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_definition.html.erb @@ -1,7 +1,7 @@
-

<%= h message('widget.' + definition.getId() + '.title') -%>

-

<%= h message('widget.' + definition.getId() + '.description') -%>

+

<%= h message('widget.' + definition.getId() + '.title', :default => definition.getTitle()) -%>

+

<%= h message('widget.' + definition.getId() + '.description', :default => definition.getDescription()) -%>

<%= form_tag :action => 'add_widget', :did => dashboard_id, :id => resource_id, :widget => definition.getId() %> -- cgit v1.2.3