{% extends "users/settings_base.html" %} {% block title %} {{ _("Account and Security - %(username)s", username=user.username) }} {% endblock %} {% block ruben_link %} rubenwardy {% 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 %} {{ user.forums_username }} {% else %} {{ _("Please PM %(rubenwardy)s on the forums to link your account.", rubenwardy=self.ruben_link()) }} {% endif %}
GitHub {% if user.github_username %}

{{ user.github_username }}

{% if user == current_user %} {{ _("View ContentDB's GitHub Permissions") }} {% endif %} {% if user.forums_username %}
{% endif %} {% elif user == current_user %} {{ _("Link Github") }} {% else %} {{ _("None") }} {% endif %}

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

{% if current_user.rank.at_least(current_user.rank.ADMIN) %} {{ _("Delete or Deactivate") }} {% else %}

{{ _("Account Deletion and Deactivation isn't available to users yet.") }} {{ _("Please raise a report to request account deletion.") }}

{{ _("Report") }}

{% 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) }} {% if current_user.rank.at_least(current_user.rank.MODERATOR) %}

{{ _("View All") }}

{% endif %} {% endblock %}