aboutsummaryrefslogtreecommitdiffstats
path: root/templates/navbar.html
blob: 9546f7195cef87f8a25d37157e7a66fee00bb7fd (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
50
51
52
53
{# 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' %}">2014 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="{% url 'introduction' %}">介绍</a></li>
        <li><a href="{% url 'list_notice' %}">通知</a></li>
        <li><a href="{% url 'schedule_all' %}">日程</a></li>
        <li><a href="{% url 'committee' %}">组委会</a></li>
        <li><a href="{% url 'sponsor' %}">赞助方</a></li>
        <li><a href="{% url 'archive_all' %}">资料下载</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="{% url 'list_approved' %}">审定名单</a></li>
            <li><a href="{% url 'traffic' %}">交通/地图</a></li>
            <li><a href="{% url 'accommodation' %}">住宿</a></li>
            <li><a href="{% url 'contact' %}">联系我们</a></li>
            <!--
            <li class="divider"></li>
            <li><a href="{% url 'about' %}">关于</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: #}