{% extends "base.html" %} {% load i18n %} {% load humanize %} {% load static %} {% block title %} {% trans "Revision for" %} {{ secret.name }} {% endblock %} {% block content %}
{# --- Header and Warning Banner --- #} {% if restore_event %} {% endif %} {% if meta.status == SecretStatus.NEEDS_CHANGING %} {% endif %}
{# — Main card — #}
{% trans "Username" %}
{{ meta.username|default:"–" }}
{% trans "URL" %}
{{ meta.url|default:"–" }}
{% if secret.content_type == ContentType.FILE %}
{% trans "File" %}
{{ meta.filename|default:_("Download") }}
{% elif secret.content_type == ContentType.PASSWORD %}
{% trans "Password" %}
•••••••••••• {{ decrypted_data.password }}
{% elif secret.content_type == ContentType.CC %} {# — Cardholder — #}
{% trans "Cardholder" %}
{{ decrypted_data.holder|default:"–" }}
{# — Card number — #}
{% trans "Card number" %}
•••• •••• •••• {{ decrypted_data.number|slice:"-4:" }} {{ decrypted_data.number }}
{# — Expiry — #}
{% trans "Expiry" %}
{{ decrypted_data.expiration_month }}/{{ decrypted_data.expiration_year }}
{# — CVV — #}
CVV
••• {{ decrypted_data.security_code }}
{# — Card password — #}
{% trans "Password" %}
•••••••• {{ decrypted_data.password }}
{% endif %}
{% trans "Description" %}
{{ meta.description|default:"–" }}
{% endblock %}