diff --git a/examples/travelynx.conf b/examples/travelynx.conf index c7173765edbaf9ff8ca5f4e6a1cc0dbc539c797e..c77e40fd11c3dbe9bf9b8a6b20d2d3d8dad9cc41 100644 --- a/examples/travelynx.conf +++ b/examples/travelynx.conf @@ -5,6 +5,9 @@ # 'localhost'. You can validate via 'perl -c travelynx.conf'. { + # Optional announcement, e.g. to indicate maintenance or backend issues. + #announcement => 'The IRIS backend is flaky. Real-time data may not be available.', + # Base URL of this travelynx installation, e.g. "https://travelynx.de" for # travelynx.de. Used to identify this travelynx instance when performing API # requests (so API providers know whom to contact case of issues) and for diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 78330eefcf10ffb4813d41a640e5fc2b660d5e3f..66dc9db24abbbef1e0fa0ab467ca458266a4f301 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -117,6 +117,16 @@ % } +% if (app->config->{announcement}) { +
+
+
+ %= app->config->{announcement} +
+
+
+% } +
% if (is_user_authenticated()) { % my $acc = current_user();