aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/WEB-INF
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-10-01 18:11:58 +0200
committerDavid Gageot <david@gageot.net>2012-10-01 18:18:26 +0200
commit1cd231283924f657f19b7def013498925d9feb07 (patch)
tree7c13988eda7b2cb63a788a2386c8546c101f8cb3 /sonar-server/src/main/webapp/WEB-INF
parentfa2a711737f0da7913c147738fb99f4d5f2c77d2 (diff)
downloadsonarqube-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.erb19
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 -%>