From 1cd231283924f657f19b7def013498925d9feb07 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Mon, 1 Oct 2012 18:11:58 +0200 Subject: [PATCH] SONAR-3529 Mark missing property set value --- .../settings/_type_PROPERTY_SET.html.erb | 19 +++++++++++++------ 1 file 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 @@ - \ 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 -%> -- 2.39.5