dashboard: don't display SSO if there is no SAML2
Showing
| ... | ... | @@ -12,7 +12,7 @@ |
| {% include "display-form-errors.html" %} | ||
| </div> | ||
| {% endif %} | ||
| <div class="col-sm-6"> | ||
| <div class="col-sm-{% if saml2 %}6{% else %}12{% endif %}"> | ||
| <div class="login-form"> | ||
| <form action="" method="POST"> | ||
| {% csrf_token %} | ||
| ... | ... | @@ -20,14 +20,12 @@ |
| </form> | ||
| </div> | ||
| </div> | ||
| {% if saml2 %} | ||
| <div class="col-sm-6"> | ||
| <h4 style="padding-top: 0; margin-top: 0;">Login with SSO</h4> | ||
| {% if saml2 %} | ||
| <a href="{% url "saml2_login" %}">Click here!</a> | ||
Please
register
or
sign in
to reply
|
||
| {% else %} | ||
| {% trans "SAML2 NOT AVAILABLE" %} | ||
| {% endif %} | ||
| </div> | ||
| {% endif %} | ||
| </div> | ||
| <div class="row"> | ||
| <div class="col-sm-12"> | ||
| ... | ... | |