% if ($self->stash('refresh_interval')) { % } %= stylesheet '/static/default.css' %= stylesheet '/static/jquery-ui.min.css' % my $force_mobile = param('force_mobile') // -1; % if ($force_mobile == 1 or ($self->browser->mobile and $force_mobile != 0)) { %= stylesheet '/static/mobile.css' % } %if (stash('load_marquee')) { %= javascript '/static/jquery-1.10.2.min.js' %= javascript '/static/jquery-ui.min.js' %= javascript '/static/autocomplete.js' %= javascript '/static/collapse.js' %= javascript '/static/marquee.js' %= javascript begin $(function () { $('marquee').marquee() }); % end % } else { %= javascript '/static/jquery-1.10.2.min.js', defer => undef %= javascript '/static/jquery-ui.min.js', defer => undef %= javascript '/static/autocomplete.js', defer => undef %= javascript '/static/collapse.js', defer => undef % } % if (stash('with_geolocation')) { %= javascript '/static/geolocation.js', defer => undef % }
% if (my $error = stash 'error') {
Backend-Fehler:
%= $error
% } % elsif (stash('stationlist')) {
Mehrdeutige Eingabe. Bitte eine Station aus der Liste auswählen
% }
%= content % if (not stash('hide_opts')) {
%= form_for _redirect => begin
Bahnhof / Haltestelle
% if (stash('stationlist')) { %= select_field station => stash('stationlist') % } % elsif (stash('station')) { %= text_field 'station', class => 'station' % } % else { %= text_field 'station', class => 'station', autofocus => 'autofocus' % }
%= submit_button 'Abfahrtsmonitor'
Weitere Einstellungen
Frontend
%= select_field mode => [ ['App / Infoscreen' => 'clean'], ['Bahnhofstafel' => 'multi'], ['Gleis' => 'single'] ]
Backend
%= select_field backend => [ ['IRIS' => 'iris'], ['HAFAS' => 'ris'] ]
Nur Züge über
%= text_field 'via', placeholder => 'Bahnhof 1, Bhf2, ... (oder regulärer Ausdruck)', class => 'station'
Gleise
%= text_field 'platforms', placeholder => '1, 2, 5, ...'
%= check_box 'hidelowdelay' => 1, id => 'id_hidelowdelay'
%= check_box 'dark' => 1, id => 'id_dark'
%= check_box 'hide_opts' => 1, id => 'id_hide_opts'
Nur für IRIS-Backend:
Ankunfts- oder Abfahrtszeit anzeigen?
%= select_field admode => [['Abfahrt bevorzugen' => 'deparr'], ['Nur Abfahrt' => 'dep'], ['Nur Ankunft' => 'arr']]
%= check_box 'detailed' => 1, id => 'id_detailed'
%= check_box 'show_realtime' => 1, id => 'id_show_realtime'
%= check_box 'no_related' => 1, id => 'id_no_related'
%= check_box 'save_defaults' => 1, id => 'id_save_defaults'
%= submit_button 'Anzeigen'
% end
Beispiele:
Siehe auch:
Developers Developers Developers Developers:
db-infoscreen v<%= stash('version') // '???' %>
Backends:
Travel::Status::DE::HAFAS v<%= $Travel::Status::DE::HAFAS::VERSION %>
Travel::Status::DE::IRIS v<%= $Travel::Status::DE::IRIS::VERSION %>
Haltestellendaten © DB Station&Service AG, Europaplatz 1, 10557 Berlin, lizensiert unter CC-BY 4.0
Datenschutzerklärung
Impressum
% }