aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-08-04 01:15:04 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-08-04 01:15:04 +0200
commit0d2522a308bbee1d35aed6303d7ce9e4bcfea13b (patch)
treeb45445c451649c411b34858a704d8701022902b6 /sonar-server
parenta9b2318ce220e5abf97ade9123233fbf1e59e900 (diff)
downloadsonarqube-0d2522a308bbee1d35aed6303d7ce9e4bcfea13b.tar.gz
sonarqube-0d2522a308bbee1d35aed6303d7ce9e4bcfea13b.zip
SONAR-75 fix naming convention of widget name and properties
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_configure_widget.html.erb2
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_definition.html.erb2
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_properties.html.erb4
3 files changed, 5 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_configure_widget.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_configure_widget.html.erb
index 08096680906..92d817dae95 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_configure_widget.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_configure_widget.html.erb
@@ -13,7 +13,7 @@
<% if definition.isEditable() %>
<a class="block-view-toggle" onclick="portal.editWidget(<%= widget.id -%>);return false;"><%= message('edit') -%></a>
<% end %>
- <%= definition.getTitle() -%>
+ <%= h message('widget.' + definition.getId() + '.name', :default => definition.getTitle()) -%>
</div>
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 c911a8c0e35..6126d0999db 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,6 +1,6 @@
<td>
<div class="widget_def" id="def_<%= definition.getId().tr('_', '') -%>">
-<p><b><%= h message('widget.' + definition.getId() + '.title', :default => definition.getTitle()) -%></b></p>
+<p><b><%= h message('widget.' + definition.getId() + '.name', :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') -%>" >
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_properties.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_properties.html.erb
index 5e61afa5646..949fda10184 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_properties.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_properties.html.erb
@@ -15,7 +15,9 @@
<td valign="top" class="thin nowrap"><b><%= property_def.key() -%></b><%= "*" unless property_def.optional()==true -%>: </td>
<td id="row_<%= property_def.key() -%>">
<%= property_value_field(property_def, value) -%>
- <span class="note"><%= property_def.description() -%></span>
+ <span class="note">
+ <%= message("widget." + widget.key + ".param." + property_def.key(), :default => property_def.description()) -%>
+ </span>
</td>
</tr>
<% end %>