diff options
author | Alvin Li <liweitianux@gmail.com> | 2013-08-13 14:13:24 +0800 |
---|---|---|
committer | Alvin Li <liweitianux@gmail.com> | 2013-08-13 14:13:24 +0800 |
commit | 9636d4a6767f49384d5c386bc3f1142c88b90613 (patch) | |
tree | 3a70f6d9e4be1791d36c87cc7cbfd1d5aa2b39dd /97suifangqa/templates/login-menu.inc.html | |
parent | 9383d9a8a5988d071766c3d08a5c946e9c5b02ae (diff) | |
download | 97dev-9636d4a6767f49384d5c386bc3f1142c88b90613.tar.bz2 |
cloned from 'bitbucket', 2013/08/13
Diffstat (limited to '97suifangqa/templates/login-menu.inc.html')
-rw-r--r-- | 97suifangqa/templates/login-menu.inc.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/97suifangqa/templates/login-menu.inc.html b/97suifangqa/templates/login-menu.inc.html new file mode 100644 index 0000000..63058fe --- /dev/null +++ b/97suifangqa/templates/login-menu.inc.html @@ -0,0 +1,24 @@ +{% load staticfiles %} +{% if user.is_authenticated %} +<nav id="login" class="logged-in"> + <span class="drop-down-area"> + <span class="user-name">{{ user.username }}</span> + <img src="{% static "images/icon_down.png" %}" alt="" class="drop-down-menu-button"> + </span> + <div class="drop-down-menu"> + <div class="text-pointer"></div> + <ul class="links"> + <!--li><a href="">修改密码</a></li> + <li><a href="">完善信息</a></li--> + <li class="last"><a href="{% url logout %}?next={{ request.path }}">退出</a></li> + </ul> + </div> +</nav> +{% else %} +<nav id="login" class="not-logged-in"> + <ul class="links inline"> + <li class="first"><a href="{% url login %}?next={{ request.path }}">登录</a></li> + <li class="last"><a href="{% url signup %}?next={{ request.path }}">注册</a></li> + </ul> +</nav> +{% endif %} |