mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 18:29:23 +00:00
[sysadmin] redesigned user_info page; changed 'Nickname' to 'Name'
This commit is contained in:
@@ -388,7 +388,9 @@ textarea:-moz-placeholder {/* for FF */
|
|||||||
}
|
}
|
||||||
/**** side-tabnav ****/
|
/**** side-tabnav ****/
|
||||||
.side-tabnav .hd,
|
.side-tabnav .hd,
|
||||||
.side-textnav .hd {
|
.side-textnav .hd,
|
||||||
|
.side-info .hd,
|
||||||
|
#right-panel .hd {
|
||||||
padding-bottom:4px;
|
padding-bottom:4px;
|
||||||
border-bottom:1px solid #ddd;
|
border-bottom:1px solid #ddd;
|
||||||
margin-bottom:1em;
|
margin-bottom:1em;
|
||||||
@@ -452,6 +454,9 @@ textarea:-moz-placeholder {/* for FF */
|
|||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.side-info dt {
|
||||||
|
margin-top:15px;
|
||||||
|
}
|
||||||
/**** checkbox ****/
|
/**** checkbox ****/
|
||||||
.checkbox-orig {
|
.checkbox-orig {
|
||||||
font-size:0;
|
font-size:0;
|
||||||
@@ -845,8 +850,6 @@ textarea:-moz-placeholder {/* for FF */
|
|||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
}
|
}
|
||||||
#right-panel .hd {
|
#right-panel .hd {
|
||||||
padding-bottom:4px;
|
|
||||||
border-bottom:1px solid #ddd;
|
|
||||||
border-radius:0; /* rm radius when 'hd' is also '.ui-corner-all' */
|
border-radius:0; /* rm radius when 'hd' is also '.ui-corner-all' */
|
||||||
margin-bottom:1.5em;
|
margin-bottom:1.5em;
|
||||||
}
|
}
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
<form action="" method="post">{% csrf_token %}
|
<form action="" method="post">{% csrf_token %}
|
||||||
<label>{% trans "Password:" %}</label><a href="{{ SITE_ROOT }}accounts/password/change/">{% trans "Update" %}</a><br/>
|
<label>{% trans "Password:" %}</label><a href="{{ SITE_ROOT }}accounts/password/change/">{% trans "Update" %}</a><br/>
|
||||||
<label>{% trans "Nickname:" %}</label><input type="text" name="nickname" value="{{ form.data.nickname }}" class="input" />
|
<label>{% trans "Name:" context "true name" %}</label><input type="text" name="nickname" value="{{ form.data.nickname }}" class="input" />
|
||||||
{% for error in form.nickname.errors %}
|
{% for error in form.nickname.errors %}
|
||||||
<span class="error">{{ error|escape }}</span>
|
<span class="error">{{ error|escape }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@@ -38,14 +38,16 @@
|
|||||||
<h3 class="hd">{% trans "Info" %}</h3>
|
<h3 class="hd">{% trans "Info" %}</h3>
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt>{% trans "Nickname" %}</dt>
|
<dt>{% trans "Name" context "true name" %}</dt>
|
||||||
<dd>{{ nickname }}</dd>
|
<dd>{{ nickname }}</dd>
|
||||||
|
|
||||||
<dt>{% trans "Self-introduction" %}</dt>
|
<dt>{% trans "Self-introduction" %}</dt>
|
||||||
<dd>{{ intro }}</dd>
|
<dd>{{ intro }}</dd>
|
||||||
|
|
||||||
{% if d_profile %}
|
{% if d_profile %}
|
||||||
<dt>{% trans "Department" %}</dt>
|
<dt>{% trans "Department" %}</dt>
|
||||||
<dd>{{ d_profile.department }}</dd>
|
<dd>{{ d_profile.department }}</dd>
|
||||||
|
|
||||||
<dt>{% trans "Telephone" %}</dt>
|
<dt>{% trans "Telephone" %}</dt>
|
||||||
<dd>{{ d_profile.telephone }}</dd>
|
<dd>{{ d_profile.telephone }}</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{% block title_panel %}
|
{% block title_panel %}
|
||||||
<div class="tabnav">
|
<div class="tabnav">
|
||||||
<ul class="tabnav-tabs">
|
<ul class="tabnav-tabs fleft">
|
||||||
<li class="tabnav-tab tabnav-tab-cur">{% trans "Database" %}</li>
|
<li class="tabnav-tab tabnav-tab-cur">{% trans "Database" %}</li>
|
||||||
{% if have_ldap %}
|
{% if have_ldap %}
|
||||||
<li class="tabnav-tab"><a href="{% url 'sys_ldap_useradmin' %}">{% trans "LDAP" %}</a></li>
|
<li class="tabnav-tab"><a href="{% url 'sys_ldap_useradmin' %}">{% trans "LDAP" %}</a></li>
|
||||||
|
@@ -13,29 +13,28 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block left_panel %}
|
{% block left_panel %}
|
||||||
|
<div class="side-info">
|
||||||
<div class="info-item">
|
<h3 class="hd">{% trans "Profile" %}</h3>
|
||||||
<h3 class="info-item-top">{% trans "Profile" %}</h3>
|
|
||||||
<div class="info-item-bottom home-profile ovhd">
|
|
||||||
{% avatar email 48 %}
|
{% avatar email 48 %}
|
||||||
<p class="txt fright">
|
<dl>
|
||||||
{% if profile %}
|
{% if profile %}
|
||||||
<p>{{ profile.nickname }}</p>
|
<dt>{% trans "Name" context "true name" %}</dt>
|
||||||
<p>{{ profile.intro }}</p>
|
<dd>{{ profile.nickname }}</dd>
|
||||||
{% endif %}
|
|
||||||
{% if d_profile %}
|
|
||||||
<p>{{ d_profile.department }}</p>
|
|
||||||
<p>{{ d_profile.telephone }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="info-item">
|
<dt>{% trans "Self-introduction" %}</dt>
|
||||||
<div class="info-item-top">
|
<dd>{{ profile.intro }}</dd>
|
||||||
<h3>{% trans "Space Used" %}</h3>
|
{% endif %}
|
||||||
</div>
|
|
||||||
<div class="info-item-bottom">
|
{% if d_profile %}
|
||||||
|
<dt>{% trans "Department" %}</dt>
|
||||||
|
<dd>{{ d_profile.department }}</dd>
|
||||||
|
|
||||||
|
<dt>{% trans "Telephone" %}</dt>
|
||||||
|
<dd>{{ d_profile.telephone }}</dd>
|
||||||
|
{% endif %}
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h3 class="hd">{% trans "Space Used" %}</h3>
|
||||||
{% if CALC_SHARE_USAGE %}
|
{% if CALC_SHARE_USAGE %}
|
||||||
<p>{% trans "Total" %}: {{ quota_usage|filesizeformat }} {% if quota > 0 %}/ {{ quota|filesizeformat }} {% endif %}</p>
|
<p>{% trans "Total" %}: {{ quota_usage|filesizeformat }} {% if quota > 0 %}/ {{ quota|filesizeformat }} {% endif %}</p>
|
||||||
<p>{% trans "Used" %}: {{ my_usage|filesizeformat }}</p>
|
<p>{% trans "Used" %}: {{ my_usage|filesizeformat }}</p>
|
||||||
@@ -45,12 +44,26 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="#" id="set-quota">{% trans "Set Quota" %}</a>
|
<a href="#" id="set-quota">{% trans "Set Quota" %}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<form id="set-quota-form" method="post" class="hide">{% csrf_token %}
|
||||||
|
<h3>{% trans "Set user storage limit" %}</h3>
|
||||||
|
<input type="hidden" name="email" value="{{ email }}" />
|
||||||
|
<input type="text" name="quota" /> MB
|
||||||
|
<p class="tip">{% trans "Tip: 0 means default limit" %}</p>
|
||||||
|
<p class="error hide"></p>
|
||||||
|
<input type="submit" value="{% trans "Submit" %}" class="submit" />
|
||||||
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block right_panel %}
|
{% block right_panel %}
|
||||||
<h3>{% trans "Owned" %}</h3>
|
<div id="tabs" class="tab-tabs">
|
||||||
|
<div class="hd ovhd">
|
||||||
|
<ul class="tab-tabs-nav fleft">
|
||||||
|
<li class="tab"><a href="#owned" class="a">{% trans "Owned" %}</a></li>
|
||||||
|
<li class="tab"><a href="#shared" class="a">{% trans "Shared" %}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="owned">
|
||||||
{% if owned_repos %}
|
{% if owned_repos %}
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -74,8 +87,9 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<p>{% trans "None" %}</p>
|
<p>{% trans "None" %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<h3>{% trans "Shared" %}</h3>
|
<div id="shared">
|
||||||
{% if in_repos %}
|
{% if in_repos %}
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -97,15 +111,9 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<p>{% trans "None" %}</p>
|
<p>{% trans "None" %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<form id="set-quota-form" method="post" class="hide">{% csrf_token %}
|
|
||||||
<h3>{% trans "Set user storage limit" %}</h3>
|
|
||||||
<input type="hidden" name="email" value="{{ email }}" />
|
|
||||||
<input type="text" name="quota" /> MB
|
|
||||||
<p class="tip">{% trans "Tip: 0 means default limit" %}</p>
|
|
||||||
<p class="error hide"></p>
|
|
||||||
<input type="submit" value="{% trans "Submit" %}" class="submit" />
|
|
||||||
</form>
|
|
||||||
{% include 'snippets/repo_del_popup.html' %}
|
{% include 'snippets/repo_del_popup.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user