#86 Revocation rendering if needed

* renders revocation warning on the index view if a revocation exists
This commit is contained in:
2022-02-08 15:07:05 +01:00
parent fd3fe17953
commit a759eb2453
2 changed files with 25 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
{% load i18n fontawesome_5 %}
{% if has_revocations %}
<strong>
<a href="{{url}}" title="{% trans 'Revocations exists' %}">
{% fa5_icon 'ban' %}
{{content}}
</a>
</strong>
{% else %}
<a href="{{url}}" title="{{tooltip}}">
{{content}}
</a>
{% endif %}