1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 03:18:23 +00:00
Files
seahub/seahub/templates/sysadmin/sys_ldap_useradmin.html
2013-11-21 11:47:53 +08:00

47 lines
1.4 KiB
HTML

{% extends "admin_base.html" %}
{% load seahub_tags i18n %}
{% block nav_useradmin_class %}class="cur"{% endblock %}
{% block title_panel %}
<div class="tabnav">
<ul class="tabnav-tabs">
<li class="tabnav-tab"><a href="{% url 'sys_useradmin' %}">{% trans "Database" %}</a></li>
<li class="tabnav-tab tabnav-tab-cur">{% trans "LDAP" %}</li>
</ul>
<button class="icon-search fright" id="search-user-btn"> {% trans "Search" %}</button>
</div>
{% endblock %}
{% block main_panel %}
<table>
<tr>
<th width="80%">{% trans "Email" %}</th>
<th width="20%">{% trans "Space Used" %}</th>
</tr>
{% for user in users %}
<tr>
<td data="{{user.id}}"><a href="{{ SITE_ROOT }}useradmin/info/{{ user.props.email }}/">{{ user.email }}</a></td>
<td>
{% if CALC_SHARE_USAGE %}
{{ user.self_usage|filesizeformat }} + {{ user.share_usage|filesizeformat }} {% if user.quota > 0 %} / {{ user.quota|filesizeformat }} {% endif %}
{% else %}
{{ user.self_usage|filesizeformat }} {% if user.quota > 0 %} / {{ user.quota|filesizeformat }} {% endif %}
{% endif %}
</td>
</tr>
{% endfor %}
</table>
{% include "sysadmin/useradmin_paginator.html" %}
{% endblock %}
{% block extra_script %}
<script type="text/javascript">
$('#search-user-btn').click(function() {
location.href = "{% url 'user_search' %}";
});
</script>
{% endblock %}