{% extends 'microsys/base.html' %} {% load django_tables2 %} {% load crispy_forms_tags %} {% load static %} {% load microsys_tags %} {% block title %}{{ MS_TRANS.profile }}{% endblock %} {% block extra_head %} {{ block.super }} {% include "microsys/forms/assets_head.html" %} {% endblock %} {% block content %}

{{ MS_TRANS.profile }}

{{ MS_TRANS.profile_completeness }} {{ stats.completeness }}%
{{ MS_TRANS.tbl_username }}
{{ user.username }}
{{ MS_TRANS.tbl_email }}
{{ user.email|default:"-" }}
{{ MS_TRANS.tbl_phone }}
{{ user.profile.phone|default:"-" }}
{{ MS_TRANS.role_type }}
{% if user.is_superuser %} {{ MS_TRANS.role_superuser }} {% elif user.is_staff %} {{ MS_TRANS.role_staff }} {% else %} {{ MS_TRANS.role_user }} {% endif %}
{{ MS_TRANS.date_joined }}
{{ user.date_joined|date }}
{{ MS_TRANS.tbl_last_login }}
{% ms_timesince user.last_login %}
{% if user.profile.profile_picture %} Profile Image {% else %} Profile Image {% endif %}

{{ user.profile.full_name }} {% if user.is_active %}{% endif %}

{% if user.is_superuser %} {{ MS_TRANS.badge_admin }} {% elif user.is_staff %} {{ MS_TRANS.badge_staff }} {% endif %}
{{ MS_TRANS.account_health }} {% if stats.health == 'good' %}
{{ MS_TRANS.account_health_good }}
{% else %}
{{ MS_TRANS.account_health_attention }}
{% endif %}
{{ MS_TRANS.2fa_title }}

{{ MS_TRANS.2fa_desc }}

{% if config_2fa.email %}
{{ MS_TRANS.2fa_method_email|default:"Email Authentication" }}
{% if user.profile.is_email_2fa_enabled %} {{ MS_TRANS.status_enabled }} {% else %} {% endif %}
{% endif %} {% if config_2fa.phone %}
{{ MS_TRANS.2fa_method_phone|default:"SMS Authentication" }}
{% if user.profile.is_phone_2fa_enabled %} {{ MS_TRANS.status_enabled }} {% else %} {% endif %}
{% endif %} {% if config_2fa.totp %}
{{ MS_TRANS.2fa_method_totp|default:"Authenticator App" }}
{% if user.profile.is_totp_2fa_enabled %} {{ MS_TRANS.status_enabled }} {% else %} {% endif %}
{% endif %} {% if user.profile.is_2fa_enabled %}
{{ MS_TRANS.2fa_method_backup|default:"Recovery Codes" }}
{% endif %}
{{ stats.total_actions }}
{{ MS_TRANS.stats_total_actions|default:"Total Actions" }}
{{ stats.docs_created }}
{{ MS_TRANS.stats_docs_created|default:"Docs Created" }}
{{ stats.total_edits }}
{{ MS_TRANS.stats_edits|default:"Edits" }}
{{ stats.total_downloads }}
{{ MS_TRANS.stats_downloads|default:"Downloads" }}
{{ MS_TRANS.stats_recent_activity }}
{% if recent_activity %} {% load microsys_translation %}
{% for log in recent_activity %}
{% ms_timesince log.timestamp %}
{{ log.action|translate_log:'action' }} - {% if log.model_name %} {{ log.model_name|translate_log:'model' }} {% else %} General {% endif %}
{% format_log_details log.details as details_html %} {% if details_html %}
{{ details_html|safe }}
{% else %} {{ log.object_id|default:"-" }} {% endif %}
{% endfor %}
{% else %}

{{ MS_TRANS.timeline_empty }}

{% endif %}
{{ MS_TRANS.stats_system_interactions }}
{% if system_interactions %} {% load microsys_translation %}
{% for log in system_interactions %}
{% ms_timesince log.timestamp %}
{{ log.action|translate_log:'action' }} {% if log.model_name %} {{ log.model_name|translate_log:'model' }} {% else %} General {% endif %}
{% format_log_details log.details as sys_details_html %} {% if sys_details_html %}
{{ sys_details_html|safe }}
{% else %} {{ log.ip_address }} {% endif %}
{% endfor %}
{% else %}

{{ MS_TRANS.timeline_empty }}

{% endif %}
{% endblock %} {% block scripts %} {% include "microsys/forms/assets_scripts.html" %} {% endblock %}