summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-20 06:15:12 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-20 06:15:12 +0200
commitc8f5ba2493b6d9bcceab871d41b7ec5692d41058 (patch)
treec12358d208c7015224390bf592da6027832f7663 /templates
parentec9f142bec4321002b86d6691bca6ed1e1f5e7c9 (diff)
fix icon alignment in buttons3.2.11
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep14
-rw-r--r--templates/layouts/app.html.ep2
-rw-r--r--templates/layouts/legacy.html.ep2
3 files changed, 8 insertions, 10 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 098678f..2816af0 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -100,14 +100,12 @@
% if ($departure->{trip_id}) {
<a class="smallbutton" href="/map/<%= $departure->{trip_id} %>/<%= $departure->{train_line} // 0 %>?from=<%= $station_name %>"><i class="material-icons" aria-hidden="true">map</i> Karte</a>
% }
-% if ($departure->{wr_link} or ($icetype and $icetype->[1] and $departure->{train_type} ne 'Bus')) {
-% if ($departure->{wr_link}) {
- <a class="smallbutton" href="/_wr/<%= $departure->{train_no} %>/<%= $departure->{wr_link} %>"><i class="material-icons" aria-hidden="true">compare_arrows</i> Wagenreihung
-% if ($icetype and $icetype->[1]) {
- (Plan: <%= $icetype->[0] %>)<br/>
-% }
- </a>
-% }
+% if ($departure->{wr_link}) {
+ <a class="smallbutton" href="/_wr/<%= $departure->{train_no} %>/<%= $departure->{wr_link} %>"><i class="material-icons" aria-hidden="true">compare_arrows</i> Wagenreihung
+ </a>
+% }
+% elsif ($icetype and $icetype->[1] and $departure->{train_type} ne 'Bus') {
+ <span class="disabledbutton"><i class="material-icons" aria-hidden="true">compare_arrows</i> Plan: <%= $icetype->[0] %></span>
% }
</div>
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index 3c79173..1a19614 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 = 'v30'; # asset version
+ % my $av = 'v31'; # 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 223f07b..dd3830c 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 = 'v30'; # asset version
+ % my $av = 'v31'; # asset version
%= stylesheet "/static/${av}/css/default.css"
%= stylesheet "/static/${av}/css/material-icons.css"
%= stylesheet "/static/${av}/css/jquery-ui.min.css"