summaryrefslogtreecommitdiff
path: root/templates/layouts
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-06 14:22:39 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-06 14:22:39 +0200
commitb3de33b95e9cd7449f0a5427236d0a20b55c051e (patch)
tree4af71c032403d7d875e2f04ada79b5779344fef7 /templates/layouts
parent8fca7e3bc7d959501c81968e3935ad034dff6dfc (diff)
Squashed commit of the following:
commit 3b3dd6ea92799a95ecaa7c90ede830a62d53ee05 Author: Daniel Friesel <derf@finalrewind.org> Date: Sun Sep 6 14:21:27 2015 +0200 margins commit ae911d4fba68adce63a16bda82f9b06a51a4aa81 Merge: 0625d89 8fca7e3 Author: I <marudor@marudor.de> Date: Sat Sep 5 14:49:12 2015 +0200 Merge branch 'master' of https://github.com/derf/iris-delay-stats # Conflicts: # templates/intro.html.ep commit 0625d894bb5294f3d47cca759010ee969db7a2d1 Author: marudor <marudor@marudor.de> Date: Sat Sep 5 13:51:49 2015 +0200 fancy forms
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/default.html.ep64
1 files changed, 41 insertions, 23 deletions
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 1c58277..59d9f5a 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -2,33 +2,51 @@
<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') %>"/>
-% }
+ % 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'
- %= javascript '/js/d3.min.js'
- %= javascript '/js/d3.tip.v0.6.3.js'
- %= javascript '/js/d3funcs.js'
-</head>
-<body style="<%= (stash('hide_opts') ? 'margin: 0; padding: 0;' : q{}) %>">
+ %= 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'
-% if (my $error = stash 'error') {
-<div class="error">Backend-Fehler:</div>
-<div>
-<pre>
-%= $error
-</pre>
-</div>
-% }
+ <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>
-%= content
+ % if (my $error = stash 'error') {
+ <div class="error">Backend-Fehler:</div>
+ <div>
+ <pre>
+ %= $error
+ </pre>
+ </div>
+ % }
-<div class="about">
-version <%= stash('version') // '???' %>
-</div>
+ %= content
-</body>
-</html>
+ <div class="about">
+ version <%= stash('version') // '???' %>
+ </div>
+
+ </body>
+ </html>