diff options
Diffstat (limited to 'templates/navbar.html')
-rw-r--r-- | templates/navbar.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/templates/navbar.html b/templates/navbar.html new file mode 100644 index 0000000..00d285f --- /dev/null +++ b/templates/navbar.html @@ -0,0 +1,51 @@ +{# 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="#" class="navbar-link">{{ user.username }}</a> | + <a href="#" class="navbar-link">退出</a> + </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> + {% endif %} + </ul> + </div> <!-- /.navbar-collapse --> + </div> <!-- /.container--> +</nav> +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} |