aboutsummaryrefslogtreecommitdiffstats
path: root/templates/navbar.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/navbar.html')
-rw-r--r--templates/navbar.html8
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 -->