summaryrefslogtreecommitdiff
path: root/templates/layouts/default.html.ep
blob: ab208460781c8637ddfec78ad2c9e2919fb37028 (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
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
	<title><%= stash('title') ? "dbdb - " . stash('title') : 'dbdb' %></title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="msapplication-tap-highlight" content="no">
	<meta charset="utf-8">
	% if ($self->stash('refresh_interval')) {
		<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
		% }

		<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.css">

		%= stylesheet '/css/default.css'
		<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/js/materialize.min.js"></script>
		%= javascript '/js/d3.min.js'
		%= javascript '/js/d3.tip.v0.6.3.js'
		%= javascript '/js/d3funcs.js'

		<script>
		$(document).ready(function() {
			$('select').material_select();
			$('.datepicker').pickadate({
				selectMonths: true, // Creates a dropdown to control month
				selectYears: 15 // Creates a dropdown of 15 years to control year
			});
			$('ul.tabs').tabs();
		});
		</script>
	</head>
	<body>

		% if (my $error = stash 'error') {
			<div class="error">Backend-Fehler:</div>
			<div>
				<pre>
					%= $error
				</pre>
			</div>
			% }

			%= content

			<div class="about">
				dbdb v<%= stash('version') // '???' %>
			</div>

		</body>
		</html>