diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-09-20 06:15:12 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-09-20 06:15:12 +0200 |
commit | c8f5ba2493b6d9bcceab871d41b7ec5692d41058 (patch) | |
tree | c12358d208c7015224390bf592da6027832f7663 /templates/_train_details.html.ep | |
parent | ec9f142bec4321002b86d6691bca6ed1e1f5e7c9 (diff) |
fix icon alignment in buttons3.2.11
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r-- | templates/_train_details.html.ep | 14 |
1 files changed, 6 insertions, 8 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> |