{% extends "base.html" %}
{% load naturaltimediff %}
{% block content %}
{{user.username}}'s Profile
Username: {{ user.username }}
Email: {{ user.email }}
{% if is_admin %}
Service Accounts
{% if services %}
| Service | Username | Active |
{% for acc in services %}
| {{ acc.service }} |
{{ acc.service_uid }} |
{% if acc.active %}Yes{% else %}No{% endif %} |
{% endfor %}
{% endif %}
{% if user.application_set.all %}
Applications
| ID | Character | Applied To | Status |
{% for app in user.application_set.all %}
| {{ app.id }} |
{{ app.character }} |
{{ app.corporation }} |
{{ app.get_status_display }} |
{% endfor %}
{% endif %}
Eve API Keys
{% if user.eveaccount_set.all %}
| User ID | API Key | Description | Type | Active | Last Updated |
{% for acc in user.eveaccount_set.all %}
| {{ acc.api_user_id }} |
{{ acc.api_key }} |
{{ acc.description }} |
{{ acc.get_api_keytype_display }} |
{{ acc.get_api_status_display }} |
{{ acc.api_last_updated|naturaltimediff }} |
{% endfor %}
{% endif %}
{% if characters %}
| Character Name | Corp |
{% for char in characters %}
| {{ char.name }} |
{{ char.corporation }} |
{% endfor %}
{% endif %}
{% if "reddit"|installed %}
Reddit Accounts
{% if user.redditaccount_set.all %}
| Username | Created Date | Validated |
{% for acc in user.redditaccount_set.all %}
| {{ acc.username }} |
{{ acc.date_created }} |
{% if acc.validated %}Yes{% else %}No{% endif %} |
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
{% endblock %}