mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
Improve sys admin
This commit is contained in:
@@ -204,6 +204,7 @@ p {
|
||||
}
|
||||
.op {
|
||||
font-size:13px;
|
||||
margin-right:6px;
|
||||
}
|
||||
.op-target {
|
||||
color:#803;
|
||||
|
@@ -13,11 +13,6 @@
|
||||
<li>
|
||||
<a href="{{ SITE_ROOT }}sys/groupadmin/" {% block nav_groupadmin_class %}{% endblock %}>{% trans "Groups" %}</a>
|
||||
</li>
|
||||
{% if request.cloud_mode %}
|
||||
<li>
|
||||
<a href="{{ SITE_ROOT }}sys/orgadmin/" {% block nav_orgadmin_class %}{% endblock %}>{% trans "Organizations" %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li>
|
||||
<a href="{{ SITE_ROOT }}sys/notificationadmin/" {% block nav_notificationadmin_class %}{% endblock %}>{% trans "Notifications" %}</a>
|
||||
</li>
|
||||
|
@@ -2,21 +2,21 @@
|
||||
{% load i18n %}
|
||||
{% block nav_seafadmin_class %}class="cur"{% endblock %}
|
||||
|
||||
{% block right_panel %}
|
||||
{% block main_panel %}
|
||||
<h3>{% trans "All Libraries" %}</h3>
|
||||
{% if repos %}
|
||||
<table>
|
||||
<tr>
|
||||
<th width="4%"><!--icon--></th>
|
||||
<th width="25%">{% trans "Name" %}</th>
|
||||
<th width="28%">{% trans "Owner" %}</th>
|
||||
<th width="31%">{% trans "Description" %}</th>
|
||||
<th width="12%">{% trans "Operations" %}</th>
|
||||
<th width="15%">{% trans "Name" %}</th>
|
||||
<th width="25%">ID</th>
|
||||
<th width="20%">{% trans "Owner" %}</th>
|
||||
<th width="30%">{% trans "Description" %}</th>
|
||||
<th width="10%">{% trans "Operations" %}</th>
|
||||
</tr>
|
||||
{% for repo in repos %}
|
||||
<tr>
|
||||
<td><img src="{{MEDIA_URL}}img/sync-folder-20.png" title="{% trans "Read-Write" %}" alt="{% trans "directory icon" %}" /></td>
|
||||
<td><a href="{{ SITE_ROOT }}repo/{{ repo.props.id }}/">{{ repo.props.name }}</a></td>
|
||||
<td>{{ repo.props.name }}</td>
|
||||
<td style="font-size:11px;">{{ repo.id }}</td>
|
||||
<td><a href="{{ SITE_ROOT }}useradmin/info/{{ repo.owner }}/">{{ repo.owner}}</a></td>
|
||||
<td>{{ repo.props.desc }}</td>
|
||||
<td><a href="#" data-url="{{ SITE_ROOT }}repo/remove/{{ repo.props.id }}/?next={{ request.path }}" data-target="{{ repo.props.name }}" class="repo-delete-btn op">{% trans "Delete" %}</a></td>
|
||||
|
@@ -1,31 +1,31 @@
|
||||
{% extends "admin_base.html" %}
|
||||
{% load i18n %}
|
||||
{% load seahub_tags i18n %}
|
||||
{% load url from future %}
|
||||
{% block nav_useradmin_class %}class="cur"{% endblock %}
|
||||
{% block left_panel %}
|
||||
<h3>{% trans "Operations" %}</h3>
|
||||
<ul class="op-list">
|
||||
<li><a href="{{ SITE_ROOT }}useradmin/add/">{% trans "Add new user" %}</a></li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
||||
{% block right_panel %}
|
||||
{% block main_panel %}
|
||||
|
||||
<h3>{% trans "All Members" %}</h3>
|
||||
|
||||
>> <a href="{{ SITE_ROOT }}useradmin/add/">{% trans "Add new user" %}</a>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th width="45%">{% trans "Email" %}</th>
|
||||
<th width="20%">{% trans "Status" %}</th>
|
||||
<th width="35%">{% trans "Operations" %}</th>
|
||||
<th width="40%">{% trans "Email" %}</th>
|
||||
<th width="12%">{% trans "Status" %}</th>
|
||||
<th width="18%">{% trans "Create At" %}</th>
|
||||
<th width="30%">{% trans "Operations" %}</th>
|
||||
</tr>
|
||||
|
||||
{% for user in users %}
|
||||
<tr>
|
||||
<td><a href="{{ SITE_ROOT }}useradmin/info/{{ user.props.email }}/">{{ user.props.email }}</a></td>
|
||||
<td><a href="{{ SITE_ROOT }}useradmin/info/{{ user.props.email }}/">{{ user.email }}</a></td>
|
||||
{% if user.props.is_active %}
|
||||
<td>{% trans "Activated" %}</td>
|
||||
{% else %}
|
||||
<td><a href="{{ SITE_ROOT }}useradmin/activate/{{ user.props.id }}/" class="activate op">{% trans "Active" %}</a></td>
|
||||
{% endif %}
|
||||
<td>{{ user.ctime|tsstr_sec }}</td>
|
||||
<td>
|
||||
{% if not user.is_self %}
|
||||
<a href="#" class="remove-user-btn op" data-url="{{ SITE_ROOT }}useradmin/remove/{{ user.props.id }}/" data-target="{{ user.props.email }}">{% trans "Delete" %}</a>
|
||||
|
Reference in New Issue
Block a user