diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-04-20 17:01:42 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-04-20 17:01:42 +0800 |
commit | 733a218f0c807dd6c6c60addca1cb3c512207993 (patch) | |
tree | 0a2a1a1a546fffb56d1afd6f2dcfa31ffc105f8a /templates/navbar.html | |
parent | 81ee68feef68804dce99c37c79f91e392bea800d (diff) | |
download | django-skaschool-733a218f0c807dd6c6c60addca1cb3c512207993.tar.bz2 |
small updated navbar.html and registration templates
Diffstat (limited to 'templates/navbar.html')
-rw-r--r-- | templates/navbar.html | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/navbar.html b/templates/navbar.html index 00d285f..56a231c 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -35,14 +35,12 @@ <ul class="nav navbar-nav navbar-right"> <li><a href="#">English</a></li> {% if user.is_authenticated %} - <li> - <a href="#" class="navbar-link">{{ user.username }}</a> | - <a href="#" class="navbar-link">退出</a> - </li> + <li><a href="{% url 'profile' %}" class="navbar-link">{{ user.username }}</a></li> + <li><div><a href="{% url 'logout' %}" class="btn btn-default navbar-btn">退出</a></div></li> {% else %} <!-- wrap 'navbar-btn' within 'div' --> <li><div><a href="{% url 'registration_register' %}" class="btn btn-default navbar-btn">注册</a></div></li> - <li><div><a href="#" class="btn btn-primary navbar-btn">登录</a></div></li> + <li><div><a href="{% url 'login' %}" class="btn btn-primary navbar-btn">登录</a></div></li> {% endif %} </ul> </div> <!-- /.navbar-collapse --> |