diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-12-13 17:59:12 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-12-13 17:59:12 +0100 |
commit | 22b0e98b9cddc7721e4a95e0c007c152ba09a07f (patch) | |
tree | 76eaf347bc46bffa546c94da5b75f5bebb8d6d95 /templates/journey.html.ep | |
parent | f6bff01f76526ed18f9a763543db362e8d3fe7fa (diff) |
preliminary wagon view
Diffstat (limited to 'templates/journey.html.ep')
-rw-r--r-- | templates/journey.html.ep | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep index 712bba6..ff5bc12 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -188,6 +188,24 @@ % } </td> </tr> + % if ($journey->{user_data} and $journey->{user_data}{wagons}) { + <tr> + <th scope="row">Rollmaterial</th> + <td> + % for my $wagongroup (@{$journey->{user_data}{wagongroups} // []}) { + Gruppe <%= $wagongroup %><br/> + % } + % for my $wagon (@{$journey->{user_data}{wagons}}) { + <span style="margin-right: 0.5ex;"><%= substr($wagon->{id}, 0, 2) %></span><span style="margin-right: 0.5ex;"><%= substr($wagon->{id}, 2, 2) %></span><span style="margin-right: 0.5ex;"><%= substr($wagon->{id}, 4, 1) %></span><span style="margin-right: 0.5ex; font-weight: bold;"><%= substr($wagon->{id}, 5, 3) %></span><span style="margin-right: 0.5ex;"><%= substr($wagon->{id}, 8, 3) %></span><span style="margin-right: 1em;"><%= substr($wagon->{id}, 11) %></span> + %= $wagon->{type} + % if ($wagon->{number}) { + – Wagen <%= $wagon->{number} %> + % } + <br/> + % } + </td> + </tr> + % } </table> </div> </div> |