add simple about page

This commit is contained in:
Daniel Friesel 2018-10-07 11:57:49 +02:00
parent 17fbba75cd
commit 74fd97b4b8
3 changed files with 20 additions and 1 deletions

View file

@ -640,6 +640,12 @@ post '/action' => sub {
}
};
get '/x/about' => sub {
my ($self) = @_;
$self->render( 'about', version => $VERSION );
};
post '/x/geolocation' => sub {
my ($self) = @_;

13
templates/about.html.ep Normal file
View file

@ -0,0 +1,13 @@
<div class="row">
<div class="col s12">
<a href="https://git.finalrewind.org/travelynx">travelynx</a> v<%= stash('version') // '???' %><br/>
Backend:
<a href="https://finalrewind.org/projects/Travel-Status-DE-IRIS/">Travel::Status::DE::IRIS</a>
v<%= $Travel::Status::DE::IRIS::VERSION %><br/>
<a href="http://data.deutschebahn.com/dataset/data-haltestellen">Haltestellendaten</a>
© DB Station&amp;Service AG,
Europaplatz 1,
10557 Berlin, lizensiert unter CC-BY 4.0
</div>
</div>

View file

@ -21,7 +21,7 @@
<div class="nav-wrapper container">
<a href="/" class="brand-logo left">travelynx</a>
<ul id="nav-mobile" class="right">
<!--<li class="<%= navbar_class('/') %>"><a href='/' title="Einchecken"><i class="material-icons">Check In</i></a></li>-->
<li class="<%= navbar_class('/x/about') %>"><a href='/x/about' title="About"><i class="material-icons">info_outline</i></a></li>
</ul>
</div>
</nav>