{% extends 'generic/object.html' %} {% load perms %} {% block breadcrumbs %} {% endblock %} {% block object_identifier %} {% if object %} {{ block.super }} {% endif %} {% endblock %} {% block title %}User Key{% endblock %} {% block subtitle %} {% if object %} {{ block.super }} {% endif %} {% endblock %} {% block controls %}
{# Extra buttons #} {% block extra_controls %}{% endblock %} {% if object %} {% if request.user|can_change:object %} {# Check if the object belongs to the currently logged-in user #} {% if object.user == request.user %}  Edit {% endif %} {% endif %} {% endif %}
{% endblock %} {% block tabs %} {% if object %} {{ block.super }} {% endif %} {% endblock %} {% block content %}
Overview
{% if object.is_filled %} {% endif %}
Status {% if object.is_active %} Active {% else %} {% if not object.is_filled %} You don't have a user key on file. {% else %} This user key is inactive. Ask an administrator to enable it for you. {% endif %} {% endif %}
Public Key
{{ object.public_key }}
{% if not object %} {% endif %}
{% if object.user == request.user %} {% if object.is_filled and object.is_active %}
Session Key
Status {% if object.session_key %} Active {% else %} Inactive {% endif %}
Created {{ object.session_key.created|placeholder }}
{% endif %} {% endif %}
{% endblock content %}