cqtu/templates/base.html

101 lines
4.0 KiB
HTML
Raw Normal View History

2017-01-18 02:25:12 +01:00
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/favicon.ico">
{% load static %}
2017-01-18 02:25:12 +01:00
2019-01-22 21:47:39 +01:00
<title>CQTUFM2019 - CQ TU FM Contest 2019</title>
2017-01-18 02:25:12 +01:00
<!-- Bootstrap core CSS -->
<link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="{% static "style.css" %}" rel="stylesheet">
2017-01-20 23:36:55 +01:00
<script src="{% static "js/jquery.min.js" %}"></script>
<script src="{% static "js/bootstrap.min.js" %}"></script>
2017-01-18 02:25:12 +01:00
</head>
<body>
<!-- Static navbar -->
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<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>
2019-01-22 21:47:39 +01:00
<a class="navbar-brand" href="{% url "index" %}">CQ TU FM 2019</a>
2017-01-18 02:25:12 +01:00
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
2017-01-19 18:42:11 +01:00
{% if user.is_authenticated %}
2017-01-24 23:29:11 +01:00
<li{% if request.resolver_match.url_name == 'index' %} class="active"{%endif%}><a href="{% url "contest:index" %}">Contest Overview</a></li>
2017-01-19 18:42:11 +01:00
{% if user.ref %}
2017-01-20 18:02:41 +01:00
<li{% if "log" in request.resolver_match.url_name %} class="active"{%endif%}><a href="{% url "contest:log" %}">Log</a></li>
2017-01-26 23:47:58 +01:00
<li{% if request.resolver_match.url_name == "uploadCBR" %} class="active"{%endif%}><a href="{% url "contest:uploadCBR" %}">Upload CBR</a></li>
2017-01-19 18:42:11 +01:00
{% endif %}
{% else %}
2017-01-20 18:02:41 +01:00
<li{% if request.resolver_match.url_name == 'index' %} class="active"{%endif%}><a href="{% url "index" %}">Home</a></li>
<li{% if request.resolver_match.url_name == 'register' %} class="active"{%endif%}><a href="{% url "register" %}">Register</a></li>
2017-01-24 23:29:11 +01:00
{# <li{% if request.resolver_match.url_name == 'overview' %} class="active"{%endif%}><a href="{% url "contest:overview" %}">Contest Overview</a></li> #}
2017-01-19 18:42:11 +01:00
{% endif %}
2017-01-18 02:25:12 +01:00
</ul>
<ul class="nav navbar-nav navbar-right">
{% if user.is_staff %}
2017-01-24 23:29:11 +01:00
<li{% if "Ref" in request.resolver_match.url_name %} class="active"{%endif%}><a href="{% url "contest:registerRefs" %}">Register Users</a></li>
2017-01-18 02:25:12 +01:00
<li><a href="/admin/">Admin</a></li>
{% endif %}
{% if user.is_authenticated %}
<li><a href="/logout/">Logout</a></li>
{% else %}
2017-01-20 18:02:41 +01:00
<li{% if request.resolver_match.url_name == 'login' %} class="active"{%endif%}><a href="/login/">Login</a></li>
2017-01-18 02:25:12 +01:00
{% endif %}
</ul>
2017-01-20 14:28:17 +01:00
{% if user.is_authenticated %}
2017-01-22 22:54:57 +01:00
<p class="navbar-text navbar-right"><a href="{% url "profile" %}"><kbd>{{ user.username }} @ {% if user.ref %}{{ user.ref }}{% else %}???{% endif %}</kbd></a></p>
2017-01-20 14:28:17 +01:00
{% endif %}
2017-01-18 02:25:12 +01:00
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
2017-01-19 18:42:11 +01:00
{% if messages %}
<div class="row">
2017-01-21 04:22:17 +01:00
<div class="col-sm-12">
2017-01-19 18:42:11 +01:00
{% for message in messages %}
2017-01-21 04:22:17 +01:00
<div role="alert" class="alert {% if message.tags %}alert-{{ message.tags }} {% endif %}alert-dismissible">{{ message }}</div>
2017-01-19 18:42:11 +01:00
{% endfor %}
</div>
</div>
{% endif %}
2017-01-18 02:25:12 +01:00
{% block content %}{% endblock %}
</div> <!-- /container -->
2017-01-19 18:42:11 +01:00
<footer class="footer">
<div class="container">
2019-01-22 21:47:39 +01:00
<p class="text-muted">CQ TU FM 2019, a <a href="http://dk0tu.de/">DK0TU</a> product</p>
2017-01-19 18:42:11 +01:00
</div>
</footer>
2017-01-18 02:25:12 +01:00
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
</body>
</html>