87 lines
3.4 KiB
HTML
87 lines
3.4 KiB
HTML
{% macro alert_level(km_left) -%}
|
|
{% if km_left < 0 %}
|
|
alert-danger
|
|
{% elif km_left < 300 %}
|
|
alert-warning
|
|
{% else %}
|
|
alert-success
|
|
{% endif %}
|
|
{%- endmacro %}
|
|
|
|
{% macro service_warning() -%}
|
|
<div class="alert {{ alert_level(data.service_info['km_left']) }} alert-dismissible" role="alert">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
Service required in {{ data.service_info['km_left'] }} km. Tasks: {{ data.service_info['tasks'] }}.
|
|
</div>
|
|
{%- endmacro %}
|
|
|
|
{% macro navigation() -%}
|
|
<li><a href='{{ url_for('create_pit_stop_form') }}'>Create Pitstop</a></li>
|
|
<li><a href='{{ url_for('get_statistics') }}'>Statistics</a></li>
|
|
<li><a href='{{ url_for('get_services') }}'>Services</a></li>
|
|
<li><a href='{{ url_for('get_manual') }}'>Manual</a></li>
|
|
{%- endmacro %}
|
|
|
|
<!doctype html>
|
|
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
|
|
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
|
|
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title>Rollerverbrauch</title>
|
|
<meta name="description" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='apple-touch-icon.png') }}">
|
|
<!--
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='normalize.min.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='main.css') }}">
|
|
|
|
<script src="{{ url_for('static', filename='modernizr-2.8.3-respond-1.4.2.min.js') }}"></script> -->
|
|
|
|
|
|
<!-- Latest compiled and minified CSS -->
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
|
|
|
|
<!-- Optional theme -->
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
|
<!-- Latest compiled and minified JavaScript -->
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='main.css') }}">
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-inverse navbar-fixed-top">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="{{ url_for('get_pit_stops') }}">Rollerverbrauch</a>
|
|
</div>
|
|
<div id="navbar" class="collapse navbar-collapse">
|
|
<ul class="nav navbar-nav">
|
|
{{ navigation() }}
|
|
</ul>
|
|
</div><!--/.nav-collapse -->
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="container">
|
|
<div class="starter-template">
|
|
{% block body %}
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|
|
|