diff --git a/base/context_processors.py b/base/context_processors.py index 02fae3b00b..9d9becd65d 100644 --- a/base/context_processors.py +++ b/base/context_processors.py @@ -10,7 +10,7 @@ import settings def version(request): """ - Adds seafile version to the context + Add seafile version to the context. """ return {'seafile_version': settings.SEAFILE_VERSION} diff --git a/media/css/seahub.css b/media/css/seahub.css index 90c38aea25..23df82251f 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -65,6 +65,9 @@ tr.first { background-color: #00FF00; } .top-bar { height:20px; color:#fff; text-align:right; font-weight:bold; background:#606; } .top-bar-in { width:950px; margin:0 auto; } .top-bar a { color:#ddd; font-weight:normal; } +.top-bar a.adminconsole { float:left; color:#ddd; font-weight:normal; } +.top-bar a.myaccount { float:left; color:#ddd; font-weight:normal; } + .top-bar a:hover { background:#A0A; } /* header */ #header .top-info { margin-bottom:5px;} diff --git a/templates/add_user_form.html b/templates/add_user_form.html index 00ea34d1bf..17c7344dd7 100644 --- a/templates/add_user_form.html +++ b/templates/add_user_form.html @@ -1,4 +1,4 @@ -{% extends "myhome_base.html" %} +{% extends "admin_base.html" %} {% block title %}添加用户{% endblock %} {% block nav_useradmin_class %}class="cur"{% endblock %} {% block main_panel %} diff --git a/templates/admin_base.html b/templates/admin_base.html new file mode 100644 index 0000000000..252ad4d58e --- /dev/null +++ b/templates/admin_base.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} +{% block nav %} + +{% endblock %} + diff --git a/templates/base.html b/templates/base.html index 38e0b16a3a..b1f271af6e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -17,6 +17,10 @@
+ {% if request.user.is_staff %} + 管理员控制台 + 我的帐号 + {% endif %} {% if request.user.is_authenticated %} 欢迎, {{ request.user }} 设置 diff --git a/templates/myhome_base.html b/templates/myhome_base.html index 14ecce8e9f..542269662b 100644 --- a/templates/myhome_base.html +++ b/templates/myhome_base.html @@ -13,14 +13,6 @@
  • 小组
  • - {% if request.user.is_staff %} -
  • - 目录管理 -
  • -
  • - 用户管理 -
  • - {% endif %}
  • 回到本地
  • @@ -28,7 +20,6 @@
  • 使用帮助
  • -