show download credentials if it is issued

This commit is contained in:
Cayo Puigdefabregas 2024-02-21 11:37:19 +01:00
parent a52a5cd15d
commit 010cd169f7
2 changed files with 4 additions and 0 deletions

View file

@ -46,11 +46,13 @@
{{ object.get_status}}
</div>
</div>
{% if object.issued_on %}
<div class="row mt-3">
<div class="col text-center">
<a class="btn btn-green-admin" href="{% url 'idhub:admin_credential_json' object.id %}">{% trans 'View in JSON format' %}</a>
</div>
</div>
{% endif %}
</div>
</div>
<!-- Modal Revoke -->

View file

@ -38,6 +38,7 @@
</div>
</div>
</div>
{% if object.issued_on %}
<div class="row mt-3">
{% if object.eidas1_did and admin_validated %}
<div class="col text-center">
@ -47,5 +48,6 @@
<div class="col text-center">
<a class="btn btn-green-user" href="{% url 'idhub:user_credential_json' object.id %}">{% trans 'View credential in JSON format' %}</a>
</div>
{% endif %}
</div>
{% endblock %}