From 9e92134e0441444f46f11c244d80081809f41fcb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 26 Nov 2018 18:33:50 +0100 Subject: add quick&dirty wagon order integration --- templates/wagenreihung.html.ep | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 templates/wagenreihung.html.ep (limited to 'templates/wagenreihung.html.ep') diff --git a/templates/wagenreihung.html.ep b/templates/wagenreihung.html.ep new file mode 100644 index 0000000..9055f00 --- /dev/null +++ b/templates/wagenreihung.html.ep @@ -0,0 +1,30 @@ +
+
+(experimentell, die URL wird sich noch ändern und die Anzeige wird noch schöner) +
+ +
+% for my $section ($wr->sections) { +
+%= $section->{name} +
+% } +
+
+% for my $wagon ($wr->wagons) { +% my $bg = ''; +% if ($wagon->is_first_class) { +% $bg = 'background-color: #ffff99;'; +% } +
+% if ($wagon->is_locomotive or $wagon->is_powercar) { +LOK +% } +% else { +%= $wagon->{number} // '?' +% } +
+% } +
+ +
-- cgit v1.2.3