% if ($self->stash('refresh_interval')) {
% }
%= stylesheet '/static/infoscreen.css'
% if ($self->browser->mobile) {
%= stylesheet '/static/mobile.css'
% }
%= javascript '/static/jquery-2.1.1.min.js'
%= javascript '/static/collapse.js'
% if (my $error = stash 'errstr') {
Backend-Fehler:
% }
% for my $departure (@{$raw}) {
% my $linetype = q{};
% my $liclass = q{};
% my $time_abs = q{};
% my $time_rel = q{};
% if ($departure->can('type')) {
% given ($departure->type) {
% when ($_ =~ m{ (?: enbahn $ ) | Tram | STR }ix) { $linetype = 'tram' }
% when ([qw[S-Bahn S]]) { $linetype = 'sbahn' }
% when ([qw[NE Niederflurbus SB Bus]]) { $linetype = 'bus' }
% when ([qw[U-Bahn U]]) { $linetype = 'ubahn' }
% }
% }
% if ($departure->can('countdown')) {
% if ($departure->countdown > 1) {
% $time_rel = $departure->countdown -1 . ' min';
% }
% else {
% $time_rel = 'sofort';
% }
% }
% if ($departure->can('sched_time')) {
% $time_abs = $departure->sched_time;
% }
% else {
% $time_abs = $departure->time;
% }
% my $time_main = $time_rel;
% my $time_sec = $time_abs;
% if (my $timefmt = param('time_format')) {
% if ($timefmt eq 'abs_rel') {
% $time_main = $time_abs;
% $time_sec = $time_rel;
% }
% elsif ($timefmt eq 'abs') {
% $time_main = $time_abs;
% $time_sec = q{};
% }
% elsif ($timefmt eq 'rel') {
% $time_main = $time_rel;
% $time_sec = q{};
% }
% }
% if ($departure->can('is_cancelled') and $departure->is_cancelled) {
% $liclass = 'cancelled';
% $time_main = q{};
% }
-
% if ($departure->can('line_no')) {
% if ($linetype eq 'sbahn') {
S
% }
%= $departure->line_no
% }
% else {
% my $line = $departure->line;
% if ($line =~ m{^IC}) {
% $line = join(q{ }, (split(qr{ }, $line))[0,1]);
% }
%= $line;
% }
% if ($departure->can('route_interesting') and $departure->route_interesting) {
%= join(' - ', map { $_->can('name_suf') ? $_->name_suf : $_->name } ($departure->route_interesting));
% }
%= $departure->destination
% if ($departure->can('delay') and $departure->delay) {
(+<%= $departure->delay %>)
% }
% if ($departure->can('is_cancelled') and $departure->is_cancelled) {
fällt aus
% }
% else {
%= $time_main
% }
%= $time_sec
% if ($departure->can('platform') and $departure->platform) {
%= $departure->platform
% }
% }