diff --git a/seahub/institutions/templates/institutions/base.html b/seahub/institutions/templates/institutions/base.html deleted file mode 100644 index 619f437a881..00000000000 --- a/seahub/institutions/templates/institutions/base.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} - -{% block main_class %}d-flex ovhd{% endblock %} - -{% block admin_link %} -{% trans "Exit admin panel" %} -{% endblock %} - -{% block main_content %} -
-
- - {% block left_panel %} -

{{ request.user.institution.name }}

- - -
- -
- {% endblock %} -
- -
- {% block right_panel %}{% endblock %} -
-
-{% endblock %} diff --git a/seahub/institutions/templates/institutions/info.html b/seahub/institutions/templates/institutions/info.html deleted file mode 100644 index c9a55b32d02..00000000000 --- a/seahub/institutions/templates/institutions/info.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "institutions/base.html" %} -{% load seahub_tags i18n %} - -{% block cur_info %}tab-cur{% endblock %} - -{% block right_panel %} -

{% trans "Info" %}

- -
-
{% trans "Name" %}
-
{{ inst.name }}
- -
{% trans "Libraries" %}
-
{{repos_count}}
- -
{% trans "Activated Users" %} / {% trans "Total Users" %}
-
- {% if active_users_count %}{{ active_users_count }}{% else %}--{% endif %} - / - {% if users_count %}{{ users_count }}{% else %}--{% endif %} -
- -
{% trans "Groups" %}
-
{{groups_count}}
-
-{% endblock %} - diff --git a/seahub/institutions/templates/institutions/user_info.html b/seahub/institutions/templates/institutions/user_info.html deleted file mode 100644 index b73c892a11b..00000000000 --- a/seahub/institutions/templates/institutions/user_info.html +++ /dev/null @@ -1,174 +0,0 @@ -{% extends "institutions/base.html" %} -{% load i18n avatar_tags seahub_tags %} -{% load static %} - -{% block right_panel %} -

- Users - / - {{ email }} -

- -
-
- -
- -
-
-
{% trans "Avatar" %}
-
{% avatar email 48 %}
- -
{% trans "Email" %}
-
{{ email }}
- - {% if profile %} -
{% trans "Name" context "true name" %}
-
{{ profile.nickname }}
- {% endif %} - - {% if d_profile %} -
{% trans "Department" %}
-
{{ d_profile.department }}
- -
{% trans "Telephone" %}
-
{{ d_profile.telephone }}
- {% endif %} - -
{% trans "Space Used" %}
-
{{ space_usage|seahub_filesizeformat }} {% if space_quota > 0 %} / {{ space_quota|seahub_filesizeformat }} {% endif %} {% trans "Set Quota" %}
-
- -
{% csrf_token %} -

{% trans "Set Quota" %}

- - MB -

{% trans "Available quota:" %} {{ available_quota|seahub_filesizeformat}}

-

- -
-
- -
- {% if owned_repos %} - - - - - - - - - - {% for repo in owned_repos %} - - {% if repo.encrypted %} - - {% else %} - - {% endif %} - - {% if not repo.name %} - - {% else %} - {% if repo.encrypted %} - - {% elif enable_sys_admin_view_repo %} - - {% else %} - - {% endif %} - {% endif %} - - - - - - {% endfor %} -
{% trans "Name" %}{% trans "Size"%}{% trans "Last Update"%}{% trans "Operations" %}
{% trans {% trans Broken ({{repo.id}}){{ repo.name }}{{ repo.name }}{{ repo.name }}{{ repo.size|filesizeformat }}{{ repo.last_modify|translate_seahub_time }} -
- {% else %} -
-

{% trans "This user has not created any libraries" %}

-
- {% endif %} -
- -
- {% if personal_groups %} - - - - - - - - {% for group in personal_groups %} - - - - - - - {% endfor %} -
{% trans "Name" %}{% trans "Role" %}{% trans "Create At" %}{% trans "Operations" %}
{{ group.group_name }}{{ group.role }}{{ group.timestamp|tsstr_sec }}
- {% else %} -
-

{% trans "This user has not created or joined any groups" %}

-
- {% endif %} -
-
- -{% endblock %} - - -{% block extra_script %} - - -{% endblock %} diff --git a/seahub/institutions/templates/institutions/useradmin.html b/seahub/institutions/templates/institutions/useradmin.html deleted file mode 100644 index 4b3289eac4d..00000000000 --- a/seahub/institutions/templates/institutions/useradmin.html +++ /dev/null @@ -1,148 +0,0 @@ -{% extends "institutions/base.html" %} -{% load seahub_tags i18n %} -{% block cur_users %}tab-cur{% endblock %} - - -{% block right_panel %} -
- -
- -{% if users %} - - - - - - - - - - {% for user in users %} - - - - - - - - {% endfor %} -
{% trans "Email" %} / {% trans "Name" %} / {% trans "Contact Email" %}{% trans "Status" %}{% trans "Space Used" %}{% trans "Create At / Last Login" %}{% trans "Operations" %}
- {{ user.email }} - {% if user.name %}
{{ user.name }}{% endif %} - {% if user.contact_email %}
{{ user.contact_email }}{% endif %} -
-
- {% if user.is_active %} - {% trans "Active" %} - {% else %} - {% trans "Inactive" %} - {% endif %} - {% if not user.is_self and not user.is_staff and not user.is_institution_admin %} - - {% endif %} -
- -
-

{{ user.space_usage|seahub_filesizeformat }} {% if user.space_quota > 0 %} / {{ user.space_quota|seahub_filesizeformat }} {% 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 and not user.is_staff and not user.is_institution_admin %} - {% trans "Delete" %} - {% endif %} -
- -{% include "snippets/admin_paginator.html" %} -{% else %} -

{% trans "Empty" %}

-{% endif %} - -
-

{% trans "Activating..., please wait" %}

-
- -{% endblock %} - -{% block extra_script %} - -{% endblock %} diff --git a/seahub/institutions/templates/institutions/useradmin_search.html b/seahub/institutions/templates/institutions/useradmin_search.html deleted file mode 100644 index 55f2761c2fa..00000000000 --- a/seahub/institutions/templates/institutions/useradmin_search.html +++ /dev/null @@ -1,77 +0,0 @@ -{% extends "institutions/base.html" %} -{% load seahub_tags i18n %} -{% block cur_users %}tab-cur{% endblock %} - - -{% block right_panel %} -

{% trans "Search User"%}

- -
-
-
- -
-

{% trans "Result"%}

- -{% if users %} - - - - - - - - - - {% for user in users %} - - - - - - - - {% endfor %} -
{% trans "Email" %} / {% trans "Name" %} / {% trans "Contact Email" %}{% trans "Status" %}{% trans "Space Used" %}{% trans "Create At / Last Login" %}{% trans "Operations" %}
- {{ user.email }} - {% if user.name %}
{{ user.name }}{% endif %} - {% if user.contact_email %}
{{ user.contact_email }}{% endif %} -
-
- {% if user.is_active %} - {% trans "Active" %} - {% else %} - {% trans "Inactive" %} - {% endif %} -
-
-

{{ user.space_usage|seahub_filesizeformat }} {% if user.space_quota > 0 %} / {{ user.space_quota|seahub_filesizeformat }} {% 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 and not user.is_staff and not user.is_institution_admin %} - {% trans "Delete" %} - {% endif %} -
- -{% else %} -

{% trans "Empty" %}

-{% endif %} - -{% endblock %} - -{% block extra_script %} - -{% endblock %}