arrowcounter/counter/templates/base.html

87 lines
2.7 KiB
HTML
Raw Normal View History

2019-07-27 11:58:09 +00:00
{# vim: set ts=2 sw=2 et tw=80: #}
{% load static %}
2018-08-09 16:06:25 +00:00
{% load i18n %}
<!DOCTYPE html>
2019-07-27 11:58:09 +00:00
<html>
2019-07-27 11:58:09 +00:00
<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" %}">
{% block style %}{% endblock %}
</head>
2019-07-27 11:58:09 +00:00
<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>
2019-07-27 11:58:09 +00:00
</nav>
<ul class="sidenav" id="mobile-menu">
{% include "menu.html" with mobile=1 %}
</ul>
2019-07-27 12:20:37 +00:00
<div class="main container">
2019-07-27 11:58:09 +00:00
<main>{% block content %}{% endblock %}</main>
</div>
2019-07-27 11:58:09 +00:00
<script src="{% url 'javascript-catalog' %}"></script>
<script>
Object.assign(django.catalog, {
{% with 'Monday Tuesday Wednesday Thursday Friday Saturday Sunday' as list %}
2018-08-09 16:06:25 +00:00
{% for weekday in list.split %}
2019-07-27 11:58:09 +00:00
'{{ weekday }}': '{% trans weekday %}',
2018-08-09 16:06:25 +00:00
{% endfor %}
2019-07-27 11:58:09 +00:00
{% 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>
2019-07-27 12:17:21 +00:00
<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>