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

optimization of user profiles

This commit is contained in:
patrickgao
2015-07-09 11:55:39 +08:00
parent fbeb233865
commit f3ebab71ca
2 changed files with 52 additions and 27 deletions

View File

@@ -47,7 +47,8 @@
.icon-copy:before { content: "\f0c5"; }
.icon-lightbulb:before { content: "\f0eb"; }
.icon-chevron-left:before { content: "\f053"; }
.icon-building:before { content: "\f0f7"; }
.icon-phone:before { content: "\f095"; }
.icon-font:before { content: "\f031"; }
.icon-text-height:before { content: "\f034"; }
.icon-tint:before { content: "\f043"; }
@@ -69,7 +70,9 @@
.icon-undo:before { content: "\f0e2"; }
.icon-repeat:before { content: "\f01e"; }
.icon-question-sign:before { content: "\f059"; }
.fa-1x {
font-size: 1.3em;
}
/****** sf-icon-xx ********/
@font-face {
font-family: 'seafile-font';
@@ -3646,3 +3649,28 @@ textarea:-moz-placeholder {/* for FF */
#guide-for-new .txt {
margin-left:6.4em;
}
/* profile for new */
#new-user-profile {
width: 290px;
border: 1px solid #eee;
border-radius: 3px;
margin: 0 auto;
}
#new-user-profile p {
padding: 8px 15px;
margin: 0;
}
#new-user-profile .nickname {
font-size: 18px;
}
#new-user-profile .intro {
color: #888;
padding-top: 0;
}
#new-user-profile .profile-item {
border-top: 1px solid #eee;
}
#new-user-profile .info-detail {
padding-left: 6px;
}

View File

@@ -1,37 +1,34 @@
{% extends "profile/profile_base.html" %}
{% load avatar_tags i18n seahub_tags %}
{% block left_panel %}
<div class="profile-avatar-container">
{% block main_panel %}
<div id="new-user-profile">
{% if user %}
{% avatar user.username 80 %}
{% avatar user.username 290 %}
{% else %}
{% avatar "" 80 %}
{% avatar "" 290 %}
{% endif %}
<p title="{{ nickname }}" class="nickname ellipsis">{{ nickname }}</p>
{% if intro %}
<p class="intro">{{ intro }}</p>
{% endif %}
{% if d_profile %}
{% if d_profile.department %}
<p title="{{ d_profile.department }}" class="profile-item ellipsis">
<span class="icon-building fa-1x vam"></span>
<span class="info-detail vam">{{ d_profile.department }}</span>
</p>
{% endif %}
{% if d_profile.telephone %}
<p title="{{ d_profile.telephone }}" class="profile-item ellipsis">
<span class="icon-phone fa-1x vam"></span>
<span class="info-detail vam">{{ d_profile.telephone }}</span>
</p>
{% endif %}
{% endif %}
</div>
{% endblock %}
{% block right_panel %}
<h3 class="hd">{% trans "Info" %}</h3>
<dl>
<dt>{% trans "Name" context "true name" %}</dt>
<dd>{{ nickname }}</dd>
<dt>{% trans "Self-introduction" %}</dt>
<dd>{{ intro }}</dd>
{% if d_profile %}
<dt>{% trans "Department" %}</dt>
<dd>{{ d_profile.department }}</dd>
<dt>{% trans "Telephone" %}</dt>
<dd>{{ d_profile.telephone }}</dd>
{% endif %}
</dl>
{% endblock %}
{% block extra_script %}
<script type="text/javascript">
</script>