_checked_in: Clarify checkout/interchange UI
This commit is contained in:
parent
e726d076c3
commit
def2fedf98
1 changed files with 16 additions and 6 deletions
|
@ -29,12 +29,15 @@
|
||||||
<p>
|
<p>
|
||||||
<div class="center">
|
<div class="center">
|
||||||
% if ($status->{departure_countdown} > 120) {
|
% if ($status->{departure_countdown} > 120) {
|
||||||
Abfahrt in <%= int($status->{departure_countdown} / 60) %> Minuten
|
Abfahrt in <%= sprintf('%.f', $status->{departure_countdown} / 60) %> Minuten
|
||||||
% }
|
% }
|
||||||
% elsif (defined $status->{arrival_countdown}) {
|
% elsif (defined $status->{arrival_countdown}) {
|
||||||
% if ($status->{arrival_countdown} > 0) {
|
% if ($status->{arrival_countdown} > 1) {
|
||||||
Ankunft in <%= int($status->{arrival_countdown} / 60) %>
|
Ankunft in <%= sprintf('%.f', $status->{arrival_countdown} / 60) %>
|
||||||
Minute<%= int($status->{arrival_countdown} / 60) == 1 ? '' : 'n' %>
|
Minute<%= sprintf('%.f', $status->{arrival_countdown} / 60) == 1 ? '' : 'n' %>
|
||||||
|
% }
|
||||||
|
% elsif ($status->{arrival_countdown} > 0) {
|
||||||
|
Ankunft in weniger als einer Minute
|
||||||
% }
|
% }
|
||||||
% else {
|
% else {
|
||||||
Ziel erreicht
|
Ziel erreicht
|
||||||
|
@ -48,11 +51,18 @@
|
||||||
<div class="determinate white" style="width: <%= sprintf('%.2f', 100 * ($status->{journey_completion} // 0)); %>%;"></div>
|
<div class="determinate white" style="width: <%= sprintf('%.2f', 100 * ($status->{journey_completion} // 0)); %>%;"></div>
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
|
% if (defined $status->{arrival_countdown} and $status->{arrival_countdown} <= 0) {
|
||||||
|
<p>
|
||||||
|
Der automatische Checkout erfolgt in wenigen Minuten. Zum Umsteigen:
|
||||||
|
Aktuelle Station in der Liste auswählen. Zum Weiterfahren: Neues
|
||||||
|
Ziel wählen.
|
||||||
|
</p>
|
||||||
|
% }
|
||||||
% if ($status->{arr_name}) {
|
% if ($status->{arr_name}) {
|
||||||
<p>Zielstation ändern?</p>
|
<p>Ziel ändern?</p>
|
||||||
% }
|
% }
|
||||||
% else {
|
% else {
|
||||||
<p>Zielstation wählen:</p>
|
<p>Ziel wählen:</p>
|
||||||
% }
|
% }
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
Loading…
Reference in a new issue