Java::OrgSonarServerPlatform::Platform.getServer().getVersion()
end
+ def property_value_by_key(key)
+ property = Property.by_key(key)
+ property.value if property
+ end
+
# shortcut for the method is_admin?() without parameters. Result is kept in cache.
def administrator?
@is_administrator ||=
<% end %>
],
<%
- logo_url = property_by_key('sonar.lf.logoUrl')
- logo_width = property_by_key('sonar.lf.logoWidthPx')
+ logo_url = property_value_by_key('sonar.lf.logoUrl')
+ logo_width = property_value_by_key('sonar.lf.logoWidthPx')
%>
<%
if logo_url
%>
- logoUrl: '<%= escape_javascript property_value(logo_url) -%>',
+ logoUrl: '<%= escape_javascript logo_url -%>',
<% end %>
<%
if logo_width
%>
- logoWidth: '<%= escape_javascript property_value(logo_width) -%>'
+ logoWidth: '<%= escape_javascript logo_width -%>'
<% end %>
});
</script>