{% extends "base.html" %} {% load avatar_tags i18n %} {% load url from future %} {% block sub_title %}{% trans "Settings" %} - {% endblock %} {% block main_content %}

{% trans "Settings" %}

{% trans "Profile Setting" %}

{% avatar request.user.username 80 %}
{% csrf_token %}
{% csrf_token %} {% if not is_ldap_user %} {% trans "Update" %}
{% endif %} {% for error in form.nickname.errors %} {{ error|escape }} {% endfor %}
{% if form.data.login_id %} {% trans "You can use this field at login." %}
{% endif %} {% if form.data.contact_email %} {% trans "Your notifications will be sent to this email." %}
{% endif %} {% if form.department and form.telephone %} {% for error in form.department.errors %} {{ error|escape }} {% endfor %}
{% for error in form.telephone.errors %} {{ error|escape }} {% endfor %}
{% endif %}

{% trans "Language Setting" %}

{{ LANGUAGE_CODE|language_name_local }}
{% if user.permissions.can_add_repo %}

{% trans "Default Library Setting" %}

{% if default_repo %}

{% trans "Your default library:" %} {{default_repo.name}}.

{% endif %}

{% trans "Default library is the default place to store your personal documents and pictures." %}

{% csrf_token %}

{% trans "Choose default library:" %}

{% trans "Please click and choose a library."%}

{% endif %} {% if two_factor_auth_enabled %}

{% trans "Two-Factor Authentication" %}

{% if default_device %}

{% trans "Status" %}: {% trans "enabled" %}

{% trans "Disable Two-Factor Authentication" %}

{% blocktrans %}If you don't have any device with you, you can access your account using backup codes.{% endblocktrans %} {% blocktrans count counter=backup_tokens %}You have only one backup code remaining.{% plural %}You have {{ counter }} backup codes remaining.{% endblocktrans %}

{% trans "Show Codes" %}

{% else %}

{% blocktrans %}Two-factor authentication is not enabled for your account. Enable two-factor authentication for enhanced account security.{% endblocktrans %}

{% trans "Enable Two-Factor Authentication" %}

{% endif %}
{% endif %}

{% trans "Delete Account" %}

{% trans "This operation will not be reverted. Please think twice!" %}

{% csrf_token %}
{% endblock %} {% block extra_script %} {% include 'snippets/avatar_upload_js.html' %} {% endblock %}