summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r--templates/_train_details.html.ep14
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>