summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-21 18:50:24 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-21 18:50:24 +0200
commit1ccb20d8c19a7c9998b9daecbcf9d89a64714de4 (patch)
tree3d30bb630591a322f73fe51bb588750a5c9afab7 /templates/_train_details.html.ep
parent12e55126ec17f49cd8af27d172c96fd61fd2297a (diff)
add permalink to train details
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r--templates/_train_details.html.ep5
1 files changed, 5 insertions, 0 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 -->