<%
else
license = controller.java_facade.parseLicense(value)
+ product = license.getProduct() || '-'
+ # super-hack here
+ # should be avoided in the future
+ does_product_match = property.key == "sonar.#{product}.license.secured"
%>
<div class="width100">
<textarea rows="6" name="<%= name -%>" id="<%= id -%>" style="float: left;width: 390px"><%= h value -%></textarea>
<div style="margin-left: 400px">
<table>
<tr>
- <td class="form-key-cell">Product:</td>
- <td class="form-val-cell"><%= license.getProduct() || '-' -%></td>
+ <td class="form-key-cell <% if !does_product_match -%>bg-danger<% end -%>">Product:</td>
+ <td class="form-val-cell <% if !does_product_match -%>bg-danger<% end -%>"><%= product -%></td>
</tr>
<tr>
<td class="form-key-cell">Organization:</td>
<span class='error'><%= license.getServer() -%></span>
<% else %>
<%= license.getServer() || '-' -%>
- <% end %>
+ <% end %>
</td>
</tr>
<% license.additionalProperties().each do |k,v| -%>
</table>
</div>
</div>
-<% end %>
\ No newline at end of file
+<% end %>