summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-01-08 19:12:03 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2020-01-08 19:12:03 +0100
commit2aba2b65227834a1266ebcb0de9d5ee8b8d69cb3 (patch)
tree7aff0d3584dc2db98a9356e1db5dc8e9eca2b792
parent9697279aeb1fe202274c2e0c30c5f12e0565a8c8 (diff)
move links to card-actions for public, hide in app view for now
-rw-r--r--templates/_checked_in.html.ep22
-rw-r--r--templates/_public_status_card.html.ep10
2 files changed, 14 insertions, 18 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index b220000..62c9e78 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -260,17 +260,17 @@
% }
</div>
</div>
- <div class="row" style="margin-top: 2em;">
- <div class="col s6 center-align">
- % my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000';
- <a href="<%= $url %>" class="waves-effect waves-light btn"><i class="material-icons left">timeline</i> Zuglauf</a>
- </div>
- <div class="col s6 center-align">
- % if ($journey->{extra_data}{trip_id}) {
- <a href="https://dbf.finalrewind.org/map/<%= $journey->{extra_data}{trip_id} %>/<%= $journey->{train_line} || 0 %>" class="waves-effect waves-light btn"><i class="material-icons left">map</i> Karte</a>
- % }
- </div>
- </div>
+%# <div class="row" style="margin-top: 2em;">
+%# <div class="col s6 center-align">
+%# % my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000';
+%# <a href="<%= $url %>" class="waves-effect waves-light btn"><i class="material-icons left">timeline</i> Zuglauf</a>
+%# </div>
+%# <div class="col s6 center-align">
+%# % if ($journey->{extra_data}{trip_id}) {
+%# <a href="https://dbf.finalrewind.org/map/<%= $journey->{extra_data}{trip_id} %>/<%= $journey->{train_line} || 0 %>" class="waves-effect waves-light btn"><i class="material-icons left">map</i> Karte</a>
+%# % }
+%# </div>
+%# </div>
% if ($journey->{arr_name}) {
<div class="card" style="margin-top: 3em;">
<div class="card-content">
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep
index 751a14b..2c5c3df 100644
--- a/templates/_public_status_card.html.ep
+++ b/templates/_public_status_card.html.ep
@@ -140,15 +140,11 @@
</p>
% }
</div>
- </div>
- <div class="row">
- <div class="col s6 center-align">
+ <div class="card-action">
% my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000';
- <a href="<%= $url %>" class="waves-effect waves-light btn"><i class="material-icons left">timeline</i> Zuglauf</a>
- </div>
- <div class="col s6 center-align">
+ <a style="margin-right: 0;" href="<%= $url %>"><i class="material-icons left">timeline</i> Zuglauf</a>
% if ($journey->{extra_data}{trip_id}) {
- <a href="https://dbf.finalrewind.org/map/<%= $journey->{extra_data}{trip_id} %>/<%= $journey->{train_line} || 0 %>" class="waves-effect waves-light btn"><i class="material-icons left">map</i> Karte</a>
+ <a class="right" style="margin-right: 0;" href="https://dbf.finalrewind.org/map/<%= $journey->{extra_data}{trip_id} %>"><i class="material-icons left">map</i> Karte</a>
% }
</div>
</div>