diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-09-21 18:50:24 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-09-21 18:50:24 +0200 |
commit | 1ccb20d8c19a7c9998b9daecbcf9d89a64714de4 (patch) | |
tree | 3d30bb630591a322f73fe51bb588750a5c9afab7 /templates | |
parent | 12e55126ec17f49cd8af27d172c96fd61fd2297a (diff) |
add permalink to train details
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_train_details.html.ep | 5 | ||||
-rw-r--r-- | templates/layouts/app.html.ep | 2 | ||||
-rw-r--r-- | templates/layouts/legacy.html.ep | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 9e7a7f2..adfc5b4 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -211,4 +211,9 @@ % } </ul> <!-- mroute --> % } +% if (param('ajax')) { + <div style="margin-top: 1em;"> + <a class="smallbutton" href="/z/<%= $departure->{train_type} %>%20<%= $departure->{train_no} %>/<%= $station_name %>"><i class="material-icons" aria-hidden="true">share</i> Link</a> + </div> +% } </div> <!-- mfooter --> diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep index 1a19614..ae87360 100644 --- a/templates/layouts/app.html.ep +++ b/templates/layouts/app.html.ep @@ -18,7 +18,7 @@ <meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/> % } - % my $av = 'v31'; # asset version + % my $av = 'v32'; # asset version % if (session('theme') and session('theme') eq 'dark' or param('dark')) { %= stylesheet "/static/${av}/css/dark.min.css", id => 'theme' % } diff --git a/templates/layouts/legacy.html.ep b/templates/layouts/legacy.html.ep index dd3830c..b885bef 100644 --- a/templates/layouts/legacy.html.ep +++ b/templates/layouts/legacy.html.ep @@ -17,7 +17,7 @@ <meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/> % } - % my $av = 'v31'; # asset version + % my $av = 'v32'; # asset version %= stylesheet "/static/${av}/css/default.css" %= stylesheet "/static/${av}/css/material-icons.css" %= stylesheet "/static/${av}/css/jquery-ui.min.css" |