修改头像

This commit is contained in:
guanghongwei
2015-02-28 23:22:52 +08:00
parent 9bab7bf1e7
commit 1c96443e73
6 changed files with 31 additions and 14 deletions

View File

@@ -1,17 +1,16 @@
{% load mytags %}
<li class="nav-header">
<div class="dropdown profile-element"> <span>
<img alt="image" class="img-circle" src="/static/img/profile_small.jpg" />
<img alt="image" class="img-circle" width="64" height="64" src="/static/img/{{ role_id | to_avatar }}.png" />
</span>
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">{{ user_id }}</strong>
</span> <span class="text-muted text-xs block">{{ role }} <b class="caret"></b></span> </span> </a>
<span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">{{ user_id | to_name}}</strong>
</span> <span class="text-muted text-xs block">{{ role_id | to_role_name }} <b class="caret"></b></span> </span> </a>
<ul class="dropdown-menu animated fadeInRight m-t-xs">
<li><a href="profile.html">Profile</a></li>
<li><a href="contacts.html">Contacts</a></li>
<li><a href="mailbox.html">Mailbox</a></li>
<li><a href="/juser/profile/">个人信息</a></li>
<li><a href="/juser/chg_pass/">修改密码</a></li>
<li class="divider"></li>
<li><a href="/logout/">Logout</a></li>
<li><a href="/logout/">注销</a></li>
</ul>
</div>
<div class="logo-element">