From: David Gageot Date: Mon, 1 Oct 2012 16:11:58 +0000 (+0200) Subject: SONAR-3529 Mark missing property set value X-Git-Tag: 3.3~150 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1cd231283924f657f19b7def013498925d9feb07;p=sonarqube.git SONAR-3529 Mark missing property set value --- 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 @@ - \ 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 -%>