blob: 56a231c144202d8e7f874ff3685af8dc97f8fb89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{# navbar: to be included in 'base.html' #}
{% load url from future %}
{% load staticfiles %}
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#ska-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{% url 'index' %}">SKA暑期学校</a>
</div> <!-- navbar-header -->
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="ska-navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="#">介绍</a></li>
<li><a href="#">通知</a></li>
<li><a href="#">日程</a></li>
<li><a href="#">组委会</a></li>
<li><a href="#">交通/食宿</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">更多 <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">下载</a></li>
<li><a href="#">赞助方</a></li>
<li><a href="#">联系方式</a></li>
<li class="divider"></li>
<li><a href="#">关于</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#">English</a></li>
{% if user.is_authenticated %}
<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="{% url 'login' %}" class="btn btn-primary navbar-btn">登录</a></div></li>
{% endif %}
</ul>
</div> <!-- /.navbar-collapse -->
</div> <!-- /.container-->
</nav>
{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}
|