mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-22 03:16:34 +00:00
Show avatar in top bar instead of myhome page.
This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
<h3>操作</h3>
|
<h3>操作</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{{ SITE_ROOT }}accounts/password/change/">修改网站帐号密码</a></li>
|
<li><a href="{{ SITE_ROOT }}accounts/password/change/">修改网站帐号密码</a></li>
|
||||||
|
<li><a href="{{ SITE_ROOT }}avatar/change/">修改头像</a></li>
|
||||||
|
<li><a href="{{ SITE_ROOT }}avatar/delete/">删除不用的头像</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
<link rel="icon" type="image/png" href="{{ MEDIA_URL }}img/favicon.png" />
|
<link rel="icon" type="image/png" href="{{ MEDIA_URL }}img/favicon.png" />
|
||||||
|
|
||||||
{% block extra_style %}{% endblock %}
|
{% block extra_style %}{% endblock %}
|
||||||
|
{% load avatar_tags %}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -24,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
欢迎, {{ request.user }}
|
欢迎, {% avatar request.user 16 %} {{ request.user }}
|
||||||
<a href="{{ SITE_ROOT }}profile/">设置</a>
|
<a href="{{ SITE_ROOT }}profile/">设置</a>
|
||||||
<!--
|
<!--
|
||||||
{% if request.user.is_staff %}
|
{% if request.user.is_staff %}
|
||||||
|
@@ -3,10 +3,6 @@
|
|||||||
|
|
||||||
{% block nav_myhome_class %}class="cur"{% endblock %}
|
{% block nav_myhome_class %}class="cur"{% endblock %}
|
||||||
{% block left_panel %}
|
{% block left_panel %}
|
||||||
<h3>个人头像</h3>
|
|
||||||
<a href="{{ SITE_ROOT }}avatar/change/">{% avatar request.user 80 %}</a>
|
|
||||||
<p><a href="{{ SITE_ROOT }}avatar/change/">修改</a>
|
|
||||||
<a href="{{ SITE_ROOT }}avatar/delete/">删除</a></p>
|
|
||||||
|
|
||||||
<h3>已用空间</h3>
|
<h3>已用空间</h3>
|
||||||
<p>{{ quota_usage|filesizeformat }} / 2 GB</p>
|
<p>{{ quota_usage|filesizeformat }} / 2 GB</p>
|
||||||
|
Reference in New Issue
Block a user