{% extends "base.html" %} {% load render_table from django_tables2 %} {% block content %}

User details

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

Enabled

Disable
{% else %}

Disabled

Enable
{% endif %}
{% if request.user.is_superuser %} Subscribe to a particular service {% for service in request.user.profile.subscribed_services_notification.all %} {% endfor %}
Service Action
{{ service.name }}
{% endif %}
{% endblock %}