2018-09-02 19:41:33 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="de">
|
|
|
|
|
<head>
|
|
|
|
|
<title><%= stash('title') // 'travelynx' %></title>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2019-05-03 19:13:22 +00:00
|
|
|
|
<meta name="description" content="Checkin-Service und Verspätungslog für Bahnfahrten">
|
2018-10-07 09:46:08 +00:00
|
|
|
|
<meta name="theme-color" content="#673ab7">
|
2019-05-03 18:59:14 +00:00
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
|
|
<meta name="apple-mobile-web-app-title" content="Weather PWA">
|
2019-05-05 10:41:06 +00:00
|
|
|
|
% my $av = 'v13'; # asset version
|
2019-05-03 19:02:24 +00:00
|
|
|
|
<link rel="apple-touch-icon" href="/static/<%= $av %>/icons/icon-152x152.png">
|
|
|
|
|
<link rel="manifest" href="/static/<%= $av %>/manifest.json">
|
2019-03-07 17:36:11 +00:00
|
|
|
|
%= stylesheet "/static/${av}/css/materialize.min.css"
|
|
|
|
|
%= stylesheet "/static/${av}/css/material-icons.css"
|
|
|
|
|
%= stylesheet "/static/${av}/css/local.css"
|
2019-05-04 06:30:05 +00:00
|
|
|
|
%= javascript "/static/${av}/js/jquery-3.4.1.min.js"
|
2019-03-07 17:36:11 +00:00
|
|
|
|
%= javascript "/static/${av}/js/materialize.min.js"
|
|
|
|
|
%= javascript "/static/${av}/js/travelynx-actions.min.js"
|
2018-10-07 09:35:47 +00:00
|
|
|
|
% if (stash('with_geolocation')) {
|
2019-03-07 17:36:11 +00:00
|
|
|
|
%= javascript "/static/${av}/js/geolocation.min.js"
|
2018-10-07 09:35:47 +00:00
|
|
|
|
% }
|
2019-04-13 08:43:05 +00:00
|
|
|
|
% if (stash('with_autocomplete')) {
|
|
|
|
|
%= javascript "/static/${av}/js/autocomplete.min.js"
|
|
|
|
|
% }
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
2018-10-07 09:46:08 +00:00
|
|
|
|
<nav class="deep-purple">
|
2018-09-02 19:41:33 +00:00
|
|
|
|
<div class="nav-wrapper container">
|
2019-04-13 16:59:46 +00:00
|
|
|
|
<a href="/" class="brand-logo left">travelynx</a>
|
2018-09-02 19:41:33 +00:00
|
|
|
|
<ul id="nav-mobile" class="right">
|
2019-03-07 17:36:11 +00:00
|
|
|
|
% if (is_user_authenticated()) {
|
|
|
|
|
<li class="<%= navbar_class('/history') %>"><a href='/history' title="History"><i class="material-icons">history</i></a></li>
|
|
|
|
|
<li class="<%= navbar_class('/account') %>"><a href="/account" title="Account"><i class="material-icons">account_circle</i></a></li>
|
|
|
|
|
% }
|
|
|
|
|
<li class="<%= navbar_class('/about') %>"><a href='/about' title="About"><i class="material-icons">info_outline</i></a></li>
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
|
2019-04-13 16:59:46 +00:00
|
|
|
|
% if (app->mode eq 'development') {
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col s12 red darken-4 white-text">
|
|
|
|
|
Development Mode – Datenbank: <%= app->config->{db}->{database} %>
|
|
|
|
|
@ <%= app->config->{db}->{host} %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
% }
|
|
|
|
|
|
2018-09-02 19:41:33 +00:00
|
|
|
|
<div class="container">
|
2019-03-12 21:09:16 +00:00
|
|
|
|
% if (is_user_authenticated()) {
|
2019-03-18 17:47:52 +00:00
|
|
|
|
% my $acc = current_user();
|
2019-03-12 21:09:16 +00:00
|
|
|
|
% if ($acc and $acc->{deletion_requested}) {
|
|
|
|
|
%= include '_deletion_note', timestamp => $acc->{deletion_requested}
|
|
|
|
|
% }
|
2019-03-12 20:49:26 +00:00
|
|
|
|
% }
|
2018-09-02 19:41:33 +00:00
|
|
|
|
%= content
|
|
|
|
|
</div>
|
|
|
|
|
|
2019-05-03 18:43:46 +00:00
|
|
|
|
<script>
|
|
|
|
|
if ('serviceWorker' in navigator) {
|
|
|
|
|
window.addEventListener('load', () => {
|
|
|
|
|
navigator.serviceWorker.register('/service-worker.js')
|
|
|
|
|
.then((reg) => {
|
|
|
|
|
console.log('Service worker registered.', reg);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|