1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

[sysadmin] Fix table column width issue

This commit is contained in:
zhengxie
2014-12-26 14:44:51 +08:00
parent ab874acc58
commit aef2e5669c
3 changed files with 12 additions and 6 deletions

View File

@@ -39,10 +39,10 @@
<table>
<tr>
<th width="25%">{% trans "Email" %}</th>
<th width="24%">{% trans "Email" %}</th>
<th width="12%">{% trans "Status" %}</th>
<th width="9%">{% trans "Role" %}</th>
<th width="18%">{% trans "Space Used" %}</th>
<th width="12%">{% trans "Role" %}</th>
<th width="16%">{% trans "Space Used" %}</th>
<th width="22%">{% trans "Create At / Last Login" %}</th>
<th width="14%">{% trans "Operations" %}</th>
</tr>
@@ -76,12 +76,16 @@
{% else %}
<span class="user-role-cur-value">{% trans "Default" %}</span>
{% endif %}
{% if enable_guest %}
<img src="{{MEDIA_URL}}img/edit_12.png" alt="{% trans "Edit"%}" title="{% trans "Edit"%}" class="user-role-edit-icon cspt vh" />
{% endif %}
</div>
{% if enable_guest %}
<select name="role" class="user-role-select hide">
<option value={{default_user}} {%if not user.is_guest %}selected="selected"{% endif %}>{% trans "Default" %}</option>
<option value={{guest_user}} {%if user.is_guest %}selected="selected"{% endif %}>{% trans "Guest"%}</option>
</select>
{% endif %}
{% endif %}
</td>

View File

@@ -1,10 +1,10 @@
{% load seahub_tags i18n %}
<table>
<tr>
<th width="25%">{% trans "Email" %}</th>
<th width="24%">{% trans "Email" %}</th>
<th width="12%">{% trans "Status" %}</th>
<th width="9%">{% trans "Role" %}</th>
<th width="18%">{% trans "Space Used" %}</th>
<th width="12%">{% trans "Role" %}</th>
<th width="16%">{% trans "Space Used" %}</th>
<th width="22%">{% trans "Create At / Last Login" %}</th>
<th width="14%">{% trans "Operations" %}</th>
</tr>

View File

@@ -279,6 +279,7 @@ def sys_user_admin_ldap(request):
'next_page': current_page+1,
'per_page': per_page,
'page_next': page_next,
'enable_guest': ENABLE_GUEST,
'CALC_SHARE_USAGE': CALC_SHARE_USAGE,
},
context_instance=RequestContext(request))
@@ -327,6 +328,7 @@ def sys_user_admin_admins(request):
'have_ldap': have_ldap,
'default_user': DEFAULT_USER,
'guest_user': GUEST_USER,
'enable_guest': ENABLE_GUEST,
}, context_instance=RequestContext(request))
@login_required