add optional announcements to travelynx.conf

This commit is contained in:
Derf Null 2023-03-19 12:20:30 +01:00
parent 402fcc4d6f
commit 36eee924aa
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA
2 changed files with 13 additions and 0 deletions

View file

@ -5,6 +5,9 @@
# 'localhost'. You can validate via 'perl -c travelynx.conf'. # '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 # Base URL of this travelynx installation, e.g. "https://travelynx.de" for
# travelynx.de. Used to identify this travelynx instance when performing API # travelynx.de. Used to identify this travelynx instance when performing API
# requests (so API providers know whom to contact case of issues) and for # requests (so API providers know whom to contact case of issues) and for

View file

@ -117,6 +117,16 @@
</div> </div>
% } % }
% if (app->config->{announcement}) {
<div class="container">
<div class="row">
<div class="col s12 caution-color white-text">
%= app->config->{announcement}
</div>
</div>
</div>
% }
<div class="container"> <div class="container">
% if (is_user_authenticated()) { % if (is_user_authenticated()) {
% my $acc = current_user(); % my $acc = current_user();