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 @@