bornhack-website/src/templates/base.html

98 lines
3.9 KiB
HTML
Raw Normal View History

{% load static from staticfiles %}
2016-02-20 04:18:12 +00:00
{% load bootstrap3 %}
2017-01-23 22:58:41 +00:00
{% load menubutton %}
2016-12-28 23:15:13 +00:00
{% static "" as baseurl %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
2016-07-05 16:46:32 +00:00
<title>{% block title %}BornHack{% endblock %}</title>
<!-- Bootstrap core CSS -->
<link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="{% static 'css/bornhack.css' %}" rel="stylesheet">
2016-02-21 01:04:51 +00:00
2017-01-25 00:49:13 +00:00
{% bootstrap_javascript jquery=1 %}
2016-02-21 01:04:51 +00:00
{% block extra_head %}
{% endblock %}
</head>
<body>
<nav class="navbar navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
2016-02-20 00:33:57 +00:00
<a class="navbar-brand" href="/">
2016-12-28 23:15:13 +00:00
{% if request.resolver_match.kwargs.camp_slug %}
2017-01-23 22:58:41 +00:00
<img src="{% static camp.logo_small %}" class="img-responsive" />
2016-12-28 23:15:13 +00:00
{% else %}
<img src="{% static 'img/logo-small.png' %}" class="img-responsive" />
{% endif %}
</a>
</div>
2017-01-23 22:58:41 +00:00
<div id="navbar" class="navbar-collapse collapse">
2016-05-06 15:08:52 +00:00
<ul class="nav navbar-nav">
<li><a href="{% url 'news:index' %}">News</a></li>
<li><a href="{% url 'shop:index' %}">Shop</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Camps<span class="caret"></span></a>
<ul class="dropdown-menu">
2017-01-25 00:49:13 +00:00
<li><a href="{% url 'camp_detail' camp_slug='bornhack-2017' %}">BornHack 2017</a></li>
<li><a href="{% url 'camp_list' %}">Other camps</a></li>
</ul>
</li>
2017-01-23 22:58:41 +00:00
<li><a href="{% url 'contact' %}">Contact</a></li>
2016-12-28 23:15:13 +00:00
</ul>
<ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %}
2016-12-28 23:15:13 +00:00
<li><a href="{% url 'profiles:detail' %}">Account</a></li>
{% else %}
<li><a href="{% url 'account_login' %}">Login</a></li>
{% endif %}
2016-12-28 23:15:13 +00:00
</ul>
</div>
</div>
</nav>
2017-01-23 22:58:41 +00:00
<div id="main" class="container container-fluid">
2016-12-28 23:15:13 +00:00
{% if camp %}
<div class="row">
<div class="btn-group btn-group-justified">
2017-01-23 22:58:41 +00:00
<a class="btn {% menubuttonclass 'camps' %}" href="{% url 'camp_detail' camp_slug=camp.slug %}">{{ camp.title }}</a>
<a class="btn {% menubuttonclass 'info' %}" href="{% url 'info' camp_slug=camp.slug %}">Info</a></li>
<a class="btn {% menubuttonclass 'villages' %}" href="{% url 'village_list' camp_slug=camp.slug %}">Villages</a>
<a class="btn {% menubuttonclass 'program' %}" href="{% url 'schedule_index' camp_slug=camp.slug %}">Schedule</a>
<a class="btn {% menubuttonclass 'sponsors' %}" href="{% url 'sponsors' camp_slug=camp.slug %}">Sponsors</a>
2016-12-28 23:15:13 +00:00
</div>
2017-01-23 22:58:41 +00:00
<p>
</div>
2016-12-28 23:15:13 +00:00
{% endif %}
2016-02-20 04:18:12 +00:00
{% bootstrap_messages %}
{% block content %}{% endblock %}
2016-05-19 09:19:51 +00:00
<footer class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
2016-06-01 12:01:27 +00:00
{% block footer %}
<a href="{% url 'general-terms' %}">General Terms &amp; Conditions</a> |
2016-06-06 15:33:25 +00:00
<a href="{% url 'conduct' %}">Code of Conduct</a> |
<a href="{% url 'privacy-policy' %}">Privacy Policy</a> |
2016-12-28 23:15:13 +00:00
<a href="{% url 'contact' %}">Contact</a>
2016-06-01 12:01:27 +00:00
{% endblock %}
2016-05-19 09:19:51 +00:00
</div>
</footer>
</div>
</body>
</html>
2017-01-23 22:58:41 +00:00