add simple about page
This commit is contained in:
parent
17fbba75cd
commit
74fd97b4b8
3 changed files with 20 additions and 1 deletions
6
index.pl
6
index.pl
|
@ -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
13
templates/about.html.ep
Normal 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&Service AG,
|
||||
Europaplatz 1,
|
||||
10557 Berlin, lizensiert unter CC-BY 4.0
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue