Show warning message when no Factor exists

This commit is contained in:
Jens Langhammer 2019-03-02 23:54:40 +01:00
parent 54427f7c68
commit 9b131b619f

View file

@ -76,9 +76,13 @@
<div class="card-pf-body"> <div class="card-pf-body">
<p class="card-pf-aggregate-status-notifications"> <p class="card-pf-aggregate-status-notifications">
<span class="card-pf-aggregate-status-notification"> <span class="card-pf-aggregate-status-notification">
<a href="{% url 'passbook_admin:factors' %}"> {% if factor_count < 1 %}
<span class="pficon pficon-ok"></span>{{ factor_count }} <span class="pficon-error-circle-o" data-toggle="tooltip" data-placement="right"
</a> title="{% trans 'No Factors configured. No Users will be able to login.' %}"></span>
{{ factor_count }}
{% else %}
<span class="pficon pficon-ok"></span>{{ worker_count }}
{% endif %}
</span> </span>
</p> </p>
</div> </div>