From 2e7a51211c66832625155ef1b0ce4ebe7edbdc1d Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 20 May 2013 14:46:11 +0200 Subject: [PATCH] SONAR-4339 Red background on license server id when invalid value --- .../WEB-INF/app/views/settings/_type_LICENSE.html.erb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_LICENSE.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_LICENSE.html.erb index 1998850a446..346c555d249 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_LICENSE.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_LICENSE.html.erb @@ -36,7 +36,15 @@ Server: - <%= license.getServer() || '-' -%> + + <% if license.getServer() && + license.getServer() != "*" && + controller.java_facade.getConfigurationValue("sonar.server_id") != license.getServer() %> + <%= license.getServer() -%> + <% else %> + <%= license.getServer() || '-' -%> + <% end %> + <% license.additionalProperties().each do |k,v| -%> -- 2.39.5