{% 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 }}
{% if user.profile.notification_enabled %}

Notifications are enabled

Disable {% else %}

Notifications are disabled

Enable {% endif %}
{% if request.user.is_superuser and user.profile.notification_enabled %} Add a notification filter {% if request.user.profile.notification_filters.count == 0 %}
Note:
You haven't created any filters. You will receive all notifications.
{% else %} {% render_table table %} {% endif %} {% endif %}
{% endblock %} {% block custom_script %} {% endblock %}