arrowcounter/counter/templates/base.html
2019-08-06 14:51:29 +02:00

86 lines
2.8 KiB
HTML

{# vim: set ts=2 sw=2 et tw=80: #}
{% load static %}
{% load i18n %}
<!DOCTYPE html>
<html>
<head>
<title>{% block title %}{% endblock %} | {% trans "Arrow counter" %}</title>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/css/materialize.min.css">
<link rel="stylesheet" href="{% static "css/main.css" %}?v=2">
{% block style %}{% endblock %}
</head>
<body>
<nav>
<div class="nav-wrapper">
<div class="container">
<a href="#!" class="brand-logo">{% trans "Arrow counter" %}</a>
<a href="#" data-target="mobile-menu" class="sidenav-trigger">
<i class="material-icons">menu</i></a>
<ul class="right hide-on-med-and-down">
{% include "menu.html" %}
</ul>
</div>
</div>
</nav>
<ul class="sidenav" id="mobile-menu">
{% include "menu.html" with mobile=1 %}
</ul>
<div class="main container">
<main>{% block content %}{% endblock %}</main>
</div>
<script src="{% url 'javascript-catalog' %}"></script>
<script>
Object.assign(django.catalog, {
{% with 'Monday Tuesday Wednesday Thursday Friday Saturday Sunday' as list %}
{% for weekday in list.split %}
'{{ weekday }}': '{% trans weekday %}',
{% endfor %}
{% endwith %}
});
</script>
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/js/materialize.min.js"></script>
<script src="{% static "js/main.js" %}"></script>
{% block scripts %}{% endblock %}
</body>
<footer class="page-footer">
<div class="container">
<div class="row">
<div class="col s12">
<h5 class="white-text">{% trans "Arrow counter" %}</h5>
<p class="grey-text text-lighten-4">
{% trans "A simple online arrow counter" %}
</p>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2019 Claudio Maggioni
{% get_available_languages as languages %}
{% for lang_code, lang_name in languages %}
{% language lang_code %}
<a class="grey-text text-lighten-4 right"
href="{% url "index" %}">&nbsp;&nbsp;{{ lang_name }}</a>
{% endlanguage %}
{% endfor %}
</div>
</div>
</footer>
</html>