summaryrefslogtreecommitdiff
path: root/templates/about.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-31 09:08:17 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-03-31 09:08:17 +0200
commitf5cdad8481c31bd6a4879e9c6efd2c93c64ca6f3 (patch)
tree201fa4e2810dd0996045af77085b89f50a88b08b /templates/about.html.ep
parent413647661ac92feb38cafec3033cbc7bd07c5dc0 (diff)
about: reference transport.rest / hafas-rest-api depending on config
Diffstat (limited to 'templates/about.html.ep')
-rw-r--r--templates/about.html.ep7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/about.html.ep b/templates/about.html.ep
index 6a2212d..ae88a8d 100644
--- a/templates/about.html.ep
+++ b/templates/about.html.ep
@@ -31,7 +31,12 @@
v<%= $Travel::Status::DE::DBWagenreihung::VERSION %>
% }
<br/>
- • Karte: DB HAFAS via <a href="https://v5.db.transport.rest/">v5.db.transport.rest</a><br/>
+ % if (app->config->{hafas_rest_api} =~ m{v5.db.transport.rest}) {
+ • Karte: DB HAFAS via <a href="https://v5.db.transport.rest/">v5.db.transport.rest</a><br/>
+ % }
+ % else {
+ • Karte: DB HAFAS via <a href="https://github.com/public-transport/hafas-rest-api">hafas-rest-api</a><br/>
+ % }
• Zugauslastung Fernverkehr: DB HAFAS via <a href="https://docs.marudor.de/">marudor.de</a><br/>
• Zugauslastung Regionalverkehr: VRR EFA via <a href="https://github.com/derf/eva-to-efa-gw">eva-to-efa-gw</a><br/>
<br/>