{% load seahub_tags i18n %}
{% if is_pro %} | {% trans "Email" %} / {% trans "Name" %} / {% trans "Contact Email" %} | {% trans "Status" %} | {% trans "Role" %} | {% else %}{% trans "Email" %} / {% trans "Name" %} / {% trans "Contact Email" %} | {% trans "Status" %} | {% endif %} {% if show_institution %}{% trans "Space Used / Quota" %} | {% trans "Institution" %} | {% trans "Create At / Last Login" %} | {% else %} | {% trans "Space Used / Quota" %} | {% trans "Create At / Last Login" %} | {% endif %} |
---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ user.email }}
{% if user.name %} {{ user.name }}{% endif %} {% if user.contact_email %} {{ user.contact_email }}{% endif %} {% if not is_admin_page %} {% if user.org %} {% endif %} {% if user.trial_info %} (Trial X) {% endif %} {% endif %} |
{% if user.is_active %}
{% trans "Active" %}
{% else %}
{% trans "Inactive" %}
{% endif %}
|
{% if is_pro %}
{% if not is_admin_page %}
{% if user.is_guest %}
{% trans "Guest" %}
{% elif user.is_default %}
{% trans "Default" %}
{% else %}
{{user.role}}
{% endif %}
{% else %} {# else for `if not is_admin_page` #}
{% if user.admin_role == default_admin %}
{% trans "Default Admin" context "Default Administrator" %}
{% elif user.admin_role == system_admin %}
{% trans "System Admin" context "System Administrator" %}
{% elif user.admin_role == daily_admin %}
{% trans "Daily Admin" context "Daily Administrator" %}
{% elif user.admin_role == audit_admin %}
{% trans "Audit Admin" context "Audit Administrator" %}
{% else %}
{{user.admin_role}}
{% endif %}
{% endif %}
|
{% endif %}
{{ user.space_usage|seahub_filesizeformat }} / {% if user.space_quota > 0 %} {{ user.space_quota|seahub_filesizeformat }} {% else %} -- {% endif %} | {% if show_institution %}
{{ user.institution }}
|
{% endif %}
{% if user.source == "DB" %}
{{ user.ctime|tsstr_sec }} / {% else %} -- / {% endif %} {% if user.last_login %}{{user.last_login|translate_seahub_time}} {% else %} -- {% endif %} |
{% if not user.is_self %}
{% trans "Delete" %}
{% if user.source == "DB" %} {% trans "ResetPwd" %} {% endif %} {% if is_admin_page %} {% trans "Revoke Admin" %} {% endif %} {% endif %} |