blob: b5f507d4e3258291566209e1eac4bf34342eb87c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{# -*- mode: web; -*- #}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to">
<title>Farm Manager</title>
<meta name="author" content="Marius Peter">
<meta name="description" content="A draft page for Farm Manager.">
<!-- <link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}"> -->
<link rel="stylesheet" href="{{ url_for('static', filename='styles/style.css') }}">
</head>
<body>
<nav>
<a href="/" class="button">Home</a>
<h1>{% block title %}{% endblock %}</h1>
<ul>
{% for module in modules %}
<li><a href="/modules/{{ module.name }}" class="button">{{ module.name }}</a></li>
{% endfor %}
</ul>
</nav>
<div id="content">
{% block content %}{% endblock %}
</div>
{# Flashed messages added last, so that they appear on top of the content. #}
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<ul class="flashes">
{% for category, message in messages %}
<li class="alert alert-{{ category }}">{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
<!-- <script src="js/scripts.js"></script> -->
</body>
</html>
|