显示个人头像

pull/828/merge
q4speed 2018-01-02 17:40:49 +08:00
parent ab27d1c193
commit ad3297ff2f
2 changed files with 9 additions and 1 deletions

View File

@ -318,4 +318,8 @@ div.dataTables_wrapper div.dataTables_filter {
.logo-element {
padding: 10px 0;
}
.welcome-message img {
margin: -12px 0;
}

View File

@ -22,7 +22,11 @@
{% if user.is_authenticated %}
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<span class="m-r-sm text-muted welcome-message">
<strong class="font-bold"> {{ request.user.name }}<span style="color: #8095a8"></span></strong><b class="caret"></b>
<img alt="image" class="img-circle" width="48" height="48" src="{{ request.user.avatar_url }}"/>
<strong class="font-bold"> {{ request.user.name }}
<span style="color: #8095a8"></span>
<b class="caret"></b>
</strong>
</span>
</a>
<ul class="dropdown-menu animated fadeInRight m-t-xs">