arrowcounter/counter/templates/base.html

60 lines
1.8 KiB
HTML

{% load static %}
{% load i18n %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block title %}{% endblock %} | 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>
<body>
<nav>
<div class="nav-wrapper">
<div class="container">
<a href="#!" class="brand-logo">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="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>
</html>