diff options
author | David Gageot <david@gageot.net> | 2012-10-09 09:17:28 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-10-09 09:17:28 +0200 |
commit | e94ba937edd5f61a15bb6caea3c3989223d66b56 (patch) | |
tree | 5369838f314b40f06241b45f4198ae77dc4f5bf2 /sonar-server | |
parent | 24113c81f88cbc7460a9a23fb3c6139b01c2ade9 (diff) | |
download | sonarqube-e94ba937edd5f61a15bb6caea3c3989223d66b56.tar.gz sonarqube-e94ba937edd5f61a15bb6caea3c3989223d66b56.zip |
Better help for exclusions
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/helpers/settings_helper.rb | 4 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb | 13 |
2 files changed, 8 insertions, 9 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/settings_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/settings_helper.rb index 1ddd6320627..4ad4d3b3687 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/settings_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/settings_helper.rb @@ -52,8 +52,8 @@ module SettingsHelper end end - def property_help(property) - message("property.#{property.key}.help", :default => '') + def category_help(category) + message("category.#{category}.help", :default => '') end def property_value(property) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb index e1297cc8c88..1dd4fffea75 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb @@ -46,16 +46,15 @@ <% unless default_prop_value.blank? -%> <div class="note">Default: <%= property.type.to_s=='PASSWORD' ? '********' : h(default_prop_value) -%></div> <% end -%> - - <% details = property_help(property) -%> - <% unless details.blank? -%> - <br/> - - <div class="help"><%= details -%></div> - <% end -%> </td> </tr> <% end -%> + + <% unless category_help(@category).blank? -%> + <tr class="property <%= cycle('even', 'odd', :name => 'properties') -%>"> + <td class="help"><%= category_help(@category) -%> </td> + </tr> + <% end -%> </tbody> </table> <div style="padding-left: 16px;"> |