]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4339 Red background on license server id when invalid value
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 20 May 2013 12:46:11 +0000 (14:46 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Mon, 20 May 2013 12:47:41 +0000 (14:47 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/settings/_type_LICENSE.html.erb

index 1998850a44682a981b9c32c4b8c15b12651108a9..346c555d249c0a5af8ea54d9f197f0644a42fc20 100644 (file)
         </tr>
         <tr>
           <td class="form-key-cell">Server:</td>
-          <td><%= license.getServer() || '-' -%></td>
+          <td>
+            <%  if license.getServer() &&
+                   license.getServer() != "*" &&
+                   controller.java_facade.getConfigurationValue("sonar.server_id") != license.getServer() %>
+              <span class='error'><%= license.getServer() -%></span>
+            <% else %>
+              <%= license.getServer() || '-' -%>
+            <% end %>            
+          </td>
         </tr>
         <% license.additionalProperties().each do |k,v| -%>
         <tr>