<% content_for :extra_script do %>
  <script>
    window.sonarqube.signUpAllowed = <%= Property.value("sonar.allowUsersToSignUp") == "true" ? "true" : "false" -%>;
    window.sonarqube.landingText = '<%= escape_javascript configuration("sonar.lf.aboutText", "") -%>';

    <% auth_providers = Api::Utils.java_facade.getIdentityProviders().to_a %>
    window.sonarqube.authProviders = [
      <% auth_providers.each do |provider| %>
        {
          key: '<%= provider.getKey().to_s %>',
          name: '<%= provider.getName().to_s -%>',
          iconPath: '<%= provider.getDisplay().getIconPath().to_s -%>',
          backgroundColor: '<%= provider.getDisplay().getBackgroundColor().to_s -%>'
        },
      <% end %>
    ];
  </script>
  <script src="<%= ApplicationController.root_context -%>/js/bundles/app.js?v=<%= sonar_version -%>"></script>
<% end %>
