为超级管理员添加前台到后台的链接

This commit is contained in:
sxw@401 2015-09-15 14:16:36 +08:00
parent 6c07396cea
commit 0bbd4a1a06

View File

@ -57,6 +57,9 @@
{{ request.user.username }}
<span class="caret"></span></a>
<ul class="dropdown-menu">
{% if request.user.admin_type == 2 %}
<li><a href="/admin/">后台管理</a></li>
{% endif %}
<li><a href="/submissions/">我的提交</a></li>
<li><a href="#">我的资料</a></li>
<li role="separator" class="divider"></li>