{% 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 %} Subscribe to a particular service {% if request.user.profile.subscribed_services_notification.count == 0 %}
Note:
You haven't subscribed to any service yet. No notification will be sent.
{% else %} {% for service in request.user.profile.subscribed_services_notification.all %} {% endfor %}
Service Action
{{ service.name }}
{% endif %} {% endif %}
{% endblock %}