{% extends "users/settings_base.html" %} {% block title %} {{ _("Account and Security | %(username)s", username=user.username) }} {% endblock %} {% block pane %}

{{ _("Account and Security") }}

{{ _("Password") }}

{% if user == current_user %} {% if user.password %} Change Password {% else %} Set Password {% endif %} {% else %} {% if user.password %}

{{ _("Has password") }}

{% else %}

{{ _("Doesn't have password") }}

{% endif %} {% endif %}

{{ _("Linked Accounts") }}

Forums {% if user.forums_username %} Connected [{{ user.forums_username }}] {% else %} Please PM rubenwardy on the forums to link your account. {% endif %}
GitHub {% if user.github_username %} Connected [{{ user.github_username }}] {% if user == current_user %} View ContentDB's GitHub Permissions {% endif %} {% elif user == current_user %} Link Github {% else %} None {% endif %}
{% if current_user.rank.atLeast(current_user.rank.MODERATOR) %} View All {% endif %}

{{ _("Recent Account Actions") }}

{% from "macros/audit_log.html" import render_audit_log %} {{ render_audit_log(user.audit_log_entries.limit(10).all(), current_user) }}

{{ _("Account Deletion and Deactivation") }}

{% if current_user.rank.atLeast(current_user.rank.ADMIN) %} Delete or Deactivate {% else %}

{{ _("Account Deletion and Deactivation isn't available to users yet.") }} {{ _("Please contact the admin.") }}

{% endif %} {% endblock %}