diff options
author | David Gageot <david@gageot.net> | 2012-10-01 18:11:58 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-10-01 18:18:26 +0200 |
commit | 1cd231283924f657f19b7def013498925d9feb07 (patch) | |
tree | 7c13988eda7b2cb63a788a2386c8546c101f8cb3 /sonar-server/src/main/webapp/WEB-INF | |
parent | fa2a711737f0da7913c147738fb99f4d5f2c77d2 (diff) | |
download | sonarqube-1cd231283924f657f19b7def013498925d9feb07.tar.gz sonarqube-1cd231283924f657f19b7def013498925d9feb07.zip |
SONAR-3529 Mark missing property set value
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_PROPERTY_SET.html.erb | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_PROPERTY_SET.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_PROPERTY_SET.html.erb index d7ce63aa0e6..20f34618e46 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_PROPERTY_SET.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_PROPERTY_SET.html.erb @@ -1,7 +1,14 @@ -<select name="<%= name -%>" id="<%= id -%>"> - <option value=""><%= message('default') -%></option> +<% choices = Property.values(property.propertySetKey).reject(&:blank?) -%> +<% prompt = [[message('default'), '']] -%> - <% Property.values(property.propertySetKey).reject(&:blank?).each do |set_key| -%> - <option value="<%= set_key -%>"><%= set_key -%></option> - <% end -%> -</select>
\ No newline at end of file +<% if choices.exclude? value -%> + <% missing = [[h(value + ' <' + message('deleted') + '>'), value]] -%> +<% else -%> + <% missing = [] -%> +<% end -%> + +<%= select_tag name, options_for_select(prompt + choices + missing, value), :id => id -%> + +<% if choices.exclude? value -%> + <%= image_tag 'exclamation.png' -%> +<% end -%> |