summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-07-21 10:00:08 +0200
committerFabrice Bellingard <bellingard@gmail.com>2011-07-21 10:00:08 +0200
commit5e6fcf8ba43b0e9e8bbf1ad39498da92fcfbbca3 (patch)
treed1de618da2d6a7acc77f08203b7dbb3af8bda2b8
parent04a940ca3a7b57020bca2b529d2e04c3437ae77e (diff)
downloadsonarqube-5e6fcf8ba43b0e9e8bbf1ad39498da92fcfbbca3.tar.gz
sonarqube-5e6fcf8ba43b0e9e8bbf1ad39498da92fcfbbca3.zip
SONAR-2589 Modification of all web ruby templates to use bundles
- Display widget title and description from metadata if I18n keys not available
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_definition.html.erb4
1 files 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 @@
<td>
<div class="widget_def" id="def_<%= definition.getId().tr('_', '') -%>">
-<p><b><%= h message('widget.' + definition.getId() + '.title') -%></b></p>
-<p><%= h message('widget.' + definition.getId() + '.description') -%></p>
+<p><b><%= h message('widget.' + definition.getId() + '.title', :default => definition.getTitle()) -%></b></p>
+<p><%= h message('widget.' + definition.getId() + '.description', :default => definition.getDescription()) -%></p>
<%= form_tag :action => 'add_widget', :did => dashboard_id, :id => resource_id, :widget => definition.getId() %>
<input type="submit" value="<%= message('dashboard.add_widget') -%>" >
</form>