base.html
3.97 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<title>{% block title %}Travel Carbon Footprint Calculator{% endblock %}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{% block meta %}
<meta name="description" content="{{ content.meta.description }}">
{% for author in content.meta.authors -%}
<meta name="author" content="{{ author.name }} <{{ author.email }}>">
{% endfor %}
{% endblock %}
{% block extra_meta %}
{% endblock %}
{% assets "common_css" %}
<link rel="stylesheet" type="text/css" href="{{ ASSET_URL }}" />
{% endassets %}
{% block css %}
{% endblock %}
</head>
<body>
<div class="navbar navbar-expand-lg navbar-inverse fixed-top">
<a class="navbar-brand" href="#">
<span class="glyphicon glyphicon-plane" aria-hidden="true"></span>
{{ content.meta.title }}
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<ul class="navbar-nav">
{# <a class="nav-item nav-link active" href="#">Home <span class="sr-only">(current)</span></a>#}
<li class="nav-item"><a class="nav-link" href="{{ url_for('.home') }}">Home</a></li>
<li class="nav-item"><a class="nav-link" href="{{ url_for('.estimate') }}">Request Estimation</a></li>
{# <a class="nav-item nav-link" href="#">Features</a>#}
{# <a class="nav-item nav-link disabled" href="#">Disabled</a>#}
</ul>
</div>
</div>
<div id="image-background"></div>
<div class="container">
{% block hero -%}
<div class="jumbotron">
<h1>{{ content.home.hero.title | safe }}</h1>
<p>{{ content.home.hero.description | markdown | safe }}</p>
</div>
{%- endblock %}
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }} alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{ message }}
</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block body %}
{% endblock %}
</div>
<footer class="page-footer">
<div class="row">
<div class="col-lg-4 text-center">
<a href="https://gitlab.irap.omp.eu/carbon/travel-carbon-footprint.irap.omp.eu">
v{{ version }}
</a>
<br>
AGPL-v3
</div>
<div class="col-lg-4 text-center">
{{ content.footer.credits }}
</div>
<div class="col-lg-4"></div>
</div>
</footer>
{% assets "common_js" %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
{% block js %}
{% endblock %}
</body>
</html>