summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-01-02 00:23:17 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-01-02 00:23:17 +0100
commita37cf450276e7ff71ce3ba95e8946d816b23ba63 (patch)
tree22f4c936f05491214224268247df9ba02358870a /templates
parent7c809f6645df78ba94ae488a76efdff5cbf397d8 (diff)
wagon order: Add pictograms, minor design improvements
Diffstat (limited to 'templates')
-rw-r--r--templates/wagenreihung.html.ep30
1 files changed, 28 insertions, 2 deletions
diff --git a/templates/wagenreihung.html.ep b/templates/wagenreihung.html.ep
index 206c326..2323cbc 100644
--- a/templates/wagenreihung.html.ep
+++ b/templates/wagenreihung.html.ep
@@ -1,4 +1,7 @@
<div class="container">
+
+</div>
+<div class="container">
<div style="position: relative; width: 100%; height: 60ex;">
% for my $section ($wr->sections) {
<div style="position: absolute; left: 1em; width: 2em;
@@ -11,6 +14,9 @@
% if ($wagon->is_first_class) {
% $bg = 'background-color: #ffff99;';
% }
+% if ($wagon->is_locomotive or $wagon->is_powercar) {
+% $bg = 'background-color: #cccccc;';
+% }
<div style="position: absolute; left: 6em;
top: <%= $wagon->{position}{start_percent} %>%; bottom: <%= 100 - $wagon->{position}{end_percent} %>%;">
% if ($wr->direction == 100) {
@@ -33,12 +39,32 @@
</div>
<div style="position: absolute; left: 7em; right: 0em;
top: <%= $wagon->{position}{start_percent} %>%; bottom: <%= 100 - $wagon->{position}{end_percent} %>%;">
-%= $wagon->type
+% if ($wagon->has_accessibility) {
+ ÔÖ┐
+% }
+% if ($wagon->has_bistro) {
+ ­čŹ┤
+% }
+% if ($wagon->is_interregio) {
+ Interregio
+% }
% if ($wagon->has_compartments) {
- Abteilwagen
+ Abteil
% }
+ <span style="color: #999999;">
+%= $wagon->type
+ </span>
</div>
% }
</div>
+ <div>
+% if ($wr->train_type ne 'ICE') {
+ Angaben bitte mit Vorsicht genie├čen. Eigentlich werden vom Backend nur
+ ICE unterst├╝tzt.
+% }
+% else {
+ Angaben ohne Gew├Ąhr ÔÇô Echtzeitdaten sind m├Âglicherweise nicht ber├╝cksichtigt.
+% }
+ </div>
</div>