connections: do not show platform if it is unknown
This commit is contained in:
parent
a3ea4fde95
commit
50d8256f6f
1 changed files with 6 additions and 4 deletions
|
@ -50,7 +50,9 @@
|
||||||
% if ($train->departure_delay) {
|
% if ($train->departure_delay) {
|
||||||
%= sprintf('(%+d)', $train->departure_delay)
|
%= sprintf('(%+d)', $train->departure_delay)
|
||||||
% }
|
% }
|
||||||
<br/>Gleis <%= $train->platform || '?' %>
|
% if ($train->platform) {
|
||||||
|
<br/>Gleis <%= $train->platform %>
|
||||||
|
% }
|
||||||
% }
|
% }
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -108,10 +110,10 @@
|
||||||
% }
|
% }
|
||||||
% }
|
% }
|
||||||
</td><td>
|
</td><td>
|
||||||
% if (not $train->departure_is_cancelled) {
|
% if ($train->platform and not $train->departure_is_cancelled) {
|
||||||
Gleis <%= $train->platform || '?' %>
|
Gleis <%= $train->platform %>
|
||||||
% }
|
% }
|
||||||
% else {
|
% elsif ($train->departure_is_cancelled) {
|
||||||
fällt aus
|
fällt aus
|
||||||
% }
|
% }
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue