diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_cancelled_departure.html.ep | 4 | ||||
-rw-r--r-- | templates/cancelled.html.ep | 4 | ||||
-rw-r--r-- | templates/journey.html.ep | 66 | ||||
-rw-r--r-- | templates/layouts/default.html.ep | 2 | ||||
-rw-r--r-- | templates/passengerrights.html.ep | 12 |
5 files changed, 43 insertions, 45 deletions
diff --git a/templates/_cancelled_departure.html.ep b/templates/_cancelled_departure.html.ep index 79492a5..db6cc5c 100644 --- a/templates/_cancelled_departure.html.ep +++ b/templates/_cancelled_departure.html.ep @@ -1,9 +1,9 @@ <div class="card"> <div class="card-content"> - <span class="card-title">Zugausfall</span> + <span class="card-title">Fahrtausfall</span> <p>Die Abfahrt von <%= $journey->{train_type} %> <%= $journey->{train_no} %> in <a href="/s/<%= $journey->{dep_eva} %>"><%= $journey->{dep_name} %></a> - entfällt. Der Zugausfall auf der Fahrt nach <%= $journey->{arr_name} %> wurde bereits dokumentiert. + entfällt. Der Ausfall der Fahrt nach <%= $journey->{arr_name} %> wurde bereits dokumentiert. </p> % if (my @connections = @{stash('connections_iris') // []}) { <p>Alternative Reisemöglichkeiten:</p> diff --git a/templates/cancelled.html.ep b/templates/cancelled.html.ep index 4fab434..fe0b958 100644 --- a/templates/cancelled.html.ep +++ b/templates/cancelled.html.ep @@ -1,7 +1,7 @@ -<h1>Zugausfälle</h1> +<h1>Ausfälle</h1> <div class="row"> <div class="col s12"> - Die folgenden Zugfahrten haben nicht stattgefunden. + Die folgenden Fahrten haben nicht wie geplant stattgefunden. </div> </div> diff --git a/templates/journey.html.ep b/templates/journey.html.ep index 8a12ed5..95764eb 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -350,12 +350,12 @@ % } </div> </div> - <h2><%= L('journey.map-data') %> - % if ($journey->{edited} & 0x0040) { - ∗ - % } - </h2> - % if ($journey->{polyline}) { + % if ($journey->{polyline} or $journey->{km_route} > 0.1) { + <h2><%= L('journey.map-data') %> + % if ($journey->{edited} & 0x0040) { + ∗ + % } + </h2> <div class="row"> <div class="col s12 m6 l6 center-align"> <a class="btn waves-effect waves-light" href="<%= url_for('polyline_download', id => $journey->{id}, format => 'json' ) %>"> @@ -370,39 +370,37 @@ </a> </div> </div> - % } - <div class="row"> - <div class="col s12"> - % if ($journey->{polyline}) { - %= L('journey.map.info.download') - % } - %= L('journey.map.info.upload') - </div> - </div> - %= form_for '/polyline/set' => (method => 'post', enctype => 'multipart/form-data') => begin - %= csrf_field - %= hidden_field id => $journey->{id} <div class="row"> <div class="col s12"> - <div class="file-field input-field"> - <div class="btn"> - <span><i class="material-icons left" aria-label="<%= L('journey.map.upload') %>">file_upload</i> GPX</span> - <input type="file"> - </div> - <div class="file-path-wrapper"> - <input class="file-path validate" type="text" name="file"> + %= L('journey.map.info.download') + %= L('journey.map.info.upload') + </div> + </div> + %= form_for '/polyline/set' => (method => 'post', enctype => 'multipart/form-data') => begin + %= csrf_field + %= hidden_field id => $journey->{id} + <div class="row"> + <div class="col s12"> + <div class="file-field input-field"> + <div class="btn"> + <span><i class="material-icons left" aria-label="<%= L('journey.map.upload') %>">file_upload</i> GPX</span> + <input type="file"> + </div> + <div class="file-path-wrapper"> + <input class="file-path validate" type="text" name="file"> + </div> + %= file_field 'file' </div> - %= file_field 'file' + </div> + <div class="col s12 m6 center-align"> + %= submit_button L('journey.map.upload-full'), class => 'waves-effect waves-light btn', name => 'upload-full' + </div> + <div class="col s12 m6 center-align"> + %= submit_button L('journey.map.upload-partial'), class => 'waves-effect waves-light btn', name => 'upload-partial' </div> </div> - <div class="col s12 m6 center-align"> - %= submit_button L('journey.map.upload-full'), class => 'waves-effect waves-light btn', name => 'upload-full' - </div> - <div class="col s12 m6 center-align"> - %= submit_button L('journey.map.upload-partial'), class => 'waves-effect waves-light btn', name => 'upload-partial' - </div> - </div> - %= end + %= end + % } <h2><%= L('journey.danger') %></h2> <div class="row"> <div class="col s12 m12 l12 center-align" style="margin-top: 1em;"> diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index ec3b5e0..701c67d 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -90,7 +90,7 @@ </div> </li> % if ($acc) { - <li class="<%= navbar_class('/history') %>"><a href='/history' title="Vergangene Zugfahrten"><i class="material-icons" aria-label="Vergangene Zugfahrten">history</i></a></li> + <li class="<%= navbar_class('/history') %>"><a href='/history' title="Vergangene Fahrten"><i class="material-icons" aria-label="Vergangene Fahrten">history</i></a></li> <li class="<%= navbar_class('/account') %>"><a href="/account" title="Account"><i class="material-icons" aria-label="Account"><%= $acc->{notifications} ? 'notifications' : 'account_circle' %></i></a></li> % } % else { diff --git a/templates/passengerrights.html.ep b/templates/passengerrights.html.ep index c189657..bf9e5de 100644 --- a/templates/passengerrights.html.ep +++ b/templates/passengerrights.html.ep @@ -3,13 +3,13 @@ <div class="col s12"> <p> Ab 60 Minuten Verspätung am Ziel besteht in einigen Fällen ein - Entschädigungsanspruch gegenüber dem Eisenbahnverkehrsunternehmen. + Entschädigungsanspruch gegenüber dem Verkehrsunternehmen. Dieser kann mit dem Fahrgastrechteformular oder online geltend gemacht werden. </p> <p> - Die folgenden Zugfahrten sind wahrscheinliche Kandidaten dafür. - Details zur jeweiligen Zugfahrt sind bereits im Formular eingetragen. + Die folgenden Fahrten sind wahrscheinliche Kandidaten dafür. + Details zur jeweiligen Fahrt sind bereits im Formular eingetragen. </p> </div> </div> @@ -20,7 +20,7 @@ <thead> <tr> <th>Datum</th> - <th>Zug</th> + <th>Fahrt</th> <th>Grund</th> <th>Formular</th> </tr> @@ -79,7 +79,7 @@ <p> Bei Abo-Tickets besteht teilweise die Möglichkeit, bereits ab 20 Minuten Verspätung Fahrten gesammelt zu Entschädigungszwecken - einzureichen. Die folgenden Zugfahrten sind Kandidaten dafür. + einzureichen. Die folgenden Fahrten sind Kandidaten dafür. Fahrten mit einer Verspätung von 60 Minuten oder mehr werden hier nicht aufgeführt. </p> @@ -92,7 +92,7 @@ <thead> <tr> <th>Datum</th> - <th>Zug</th> + <th>Fahrt</th> <th>Verspätung</th> </tr> </thead> |