diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-07-30 13:53:43 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-07-30 13:53:43 +0200 |
commit | 44c35c7aadb4c7992c484053a6f4ddb4368bcb2e (patch) | |
tree | a71bd8616286833cb66f8bce3f288213b30b3bfd /templates | |
parent | bb9a4dfbccd8563133bd36c4d98dd548aec52a47 (diff) |
Allow train detail page to be opened in a new tab via middle-click
The detail page is now accessible both via javascript (as before) and via an
<a> element wrapping the list entry.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/app.html.ep | 2 | ||||
-rw-r--r-- | templates/layouts/app.html.ep | 2 | ||||
-rw-r--r-- | templates/layouts/legacy.html.ep | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep index ac6d928..07c78bf 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -49,6 +49,7 @@ % else { > % } + <a href="/z/<%= Mojo::Util::url_escape(($departure->{train_type} // q{}) . ' ' . ($departure->{train_no} // $departure->{train} // q{}) . '/' . ($departure->{station} // $station)) %>"> <div class="anchor" id="<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>"></div> <div class="line <%= $departure->{linetype} %>"> % if ($departure->{train_type} and $departure->{train_no}) { @@ -155,6 +156,7 @@ %= $route_str </span> % } + </a> </li> % } diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep index 40d4f62..e6b03ae 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 = 'v54'; # asset version + % my $av = 'v55'; # 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 9caff12..ce4d507 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 = 'v54'; # asset version + % my $av = 'v55'; # asset version %= stylesheet "/static/${av}/css/default.css" %= stylesheet "/static/${av}/css/material-icons.css" %= stylesheet "/static/${av}/css/jquery-ui.min.css" |