{% extends "base.html" %} {% load render_table from django_tables2 %} {% block main %}
Username
{{ user.get_username }}
Email
{{ user.email }}
First name
{{ user.get_short_name }}
Last Name
{{ user.last_name }}
Last login
{{ user.last_login }}
Created
{{ user.date_joined }}
Add token {% for token in tokens %} {% endfor %}
Description Created date Expiration date Key Action
{{ token.description }} {{ token.created }} {{ token.expires }} {{ token }}

Request notifications are {% if user.profile.request_notification_enabled %}enabled{% else %}disabled{% endif %}

{% if user.profile.request_notification_enabled %}Disable{% else %}Enable{% endif %}
{% if request.user.is_superuser and user.profile.request_notification_enabled %} Add a request notification filter {% if request.user.profile.request_notification_filters.count == 0 %}
Note:
You haven't created any request filters. You will receive all notifications.
{% else %} {% with object_name='request_notification' %} {% render_table request_filter_table %} {% endwith %} {% endif %} {% endif %}

Support notifications are {% if user.profile.support_notification_enabled %}enabled{% else %}disabled{% endif %}

{% if user.profile.support_notification_enabled %}Disable{% else %}Enable{% endif %}
{% if request.user.is_superuser and user.profile.support_notification_enabled %} Add a support notification filter {% if request.user.profile.instance_notification_filters.count == 0 %}
Note:
You haven't created any support filters. You will receive all notifications.
{% else %} {% with object_name='support_notification' %} {% render_table support_filter_table %} {% endwith %} {% endif %} {% endif %}
{% endblock %} {% block custom_script %} {% endblock %}