summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-08-04 14:07:25 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-08-04 14:07:25 +0200
commit1a2ff8262d30f66f2b88195f662ed6cefd8ba1fd (patch)
tree539dfb8615c7b1c0d861b379409d206ea846845c
parentbc978120e1badb597418bc08135416e639b773e3 (diff)
... 'status' is a reserved renderer key. oops.
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm6
-rw-r--r--templates/landingpage.html.ep2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index 86d29c4..ed1a879 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -229,7 +229,7 @@ sub homepage {
'landingpage',
version => $self->app->config->{version}
// 'UNKNOWN',
- status => $status,
+ user_status => $status,
connections => \@connecting_trains,
with_autocomplete => 1,
with_geolocation => 1
@@ -243,7 +243,7 @@ sub homepage {
'landingpage',
version => $self->app->config->{version}
// 'UNKNOWN',
- status => $status,
+ user_status => $status,
with_autocomplete => 1,
with_geolocation => 1
);
@@ -257,7 +257,7 @@ sub homepage {
$self->render(
'landingpage',
version => $self->app->config->{version} // 'UNKNOWN',
- status => $status,
+ user_status => $status,
with_autocomplete => 1,
with_geolocation => 1
);
diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep
index 3225950..03d0eca 100644
--- a/templates/landingpage.html.ep
+++ b/templates/landingpage.html.ep
@@ -1,5 +1,5 @@
% if (is_user_authenticated()) {
- % my $status = stash('status');
+ % my $status = stash('user_status');
% if (stash('error')) {
<div class="row">
<div class="col s12">