{% extends "base_nav.html" %} {% load humanize %} {% load i18n %} {% load staticfiles %} {% block "title" %}{{ secret.name }}{% endblock %} {% block "css" %} {% endblock %} {% block "js" %} {% endblock %} {% block "content" %}

{{ secret.name }}

{% if readable %} {% else %} {% endif %}

{% if readable %}
{% else %}
{% trans "You do not have access to this secret, but you may request access below. This will automatically notify some authorized users of your need to see the secret and let them grant access." %}
{% endif %}
{% if secret.url %} {% endif %} {% if secret.username %} {% endif %} {% if secret.description %} {% endif %}
{% trans "URL" %} {{ secret.url }}  
{% trans "Username" %} {{ secret.username }}  
{% trans "Description" %} {{ secret.description }}

{% if readable %} {% else %} {% if access_request %} {% else %}
{% csrf_token %}
{% endif %} {% endif %}
{% trans "Changed" %} {{ secret.current_revision.created|naturalday:"Y-m-d" }}
{% trans "Changed by" %} {{ secret.current_revision.set_by.username }}
{% trans "Created" %} {{ secret.created|naturalday:"Y-m-d" }}
{% trans "Created by" %} {{ secret.created_by.username }}
{% trans "Allowed groups" %} {% blocktrans with groupcount=secret.allowed_groups.all|length %} {{ groupcount }} group(s) allowed {% endblocktrans %}
{% trans "Allowed users" %} {% blocktrans with usercount=secret.allowed_users.all|length %} {{ usercount }} user(s) allowed {% endblocktrans %}
{% endblock %}