diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-05-07 17:32:02 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-05-07 17:33:15 +0200 |
commit | a5427163ced9f99044813058ddf62548debc673c (patch) | |
tree | 7bbd7efd42d497e1f6aff542d2c9284353620c3d /templates/app.html.ep | |
parent | 012169b095c2cb115cbf77707af4304a6e4a1f61 (diff) |
app: Use AJAX, not HTTP Refresh for auto-reload2.0.2
Diffstat (limited to 'templates/app.html.ep')
-rw-r--r-- | templates/app.html.ep | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep index 462f27e..79a462a 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -1,5 +1,6 @@ % if (@{$departures}) { +% if (not param('ajax')) { % if (param('dark')) { <div class="app appdark"> % } @@ -21,6 +22,7 @@ <div class="mfooter"></div> </div> <ul> +% } # not param('ajax') % my $i = 0; % my $dt_now = DateTime->now; % for my $departure (@{$departures}) { @@ -158,12 +160,14 @@ </li> % } +% if (not param('ajax')) { </ul> </div> <!-- app --> +% } % } -% else { +% elsif (not param('ajax')) { <div class="container"> <div class="error"><strong>Keine Abfahrten gefunden.</strong> |