1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 08:16:07 +00:00

Add notification at info-bar, and fix bug in visiting register/login page when user is already logged in.

This commit is contained in:
xiez
2012-06-04 21:27:32 +08:00
parent 28dbc2ad73
commit f9c72b57a4
17 changed files with 286 additions and 5 deletions

View File

@@ -2,6 +2,9 @@
{% block title %}注册{% endblock %}
{% block main_panel %}
<div class="narrow-panel">
{% if request.user.is_authenticated %}
<h2>欢迎回来,您已登录。</h2>
{% else %}
<h2>注册</h2>
<form action="" method="post">
<label for="id_email">邮箱:</label>
@@ -16,6 +19,7 @@
{{ form.password2.errors }}
<input type="submit" value="提交" />
</form>
{% endif %}
</div>
{% endblock %}