Add changelog

This commit is contained in:
Daniel Friesel 2019-05-03 10:32:58 +02:00
parent af5c26bf8a
commit bf2dae7c45
4 changed files with 43 additions and 4 deletions

View file

@ -1720,6 +1720,7 @@ sub startup {
$r->get('/')->to('traveling#homepage'); $r->get('/')->to('traveling#homepage');
$r->get('/about')->to('static#about'); $r->get('/about')->to('static#about');
$r->get('/api')->to('api#documentation'); $r->get('/api')->to('api#documentation');
$r->get('/changelog')->to('static#changelog');
$r->get('/impressum')->to('static#imprint'); $r->get('/impressum')->to('static#imprint');
$r->get('/imprint')->to('static#imprint'); $r->get('/imprint')->to('static#imprint');
$r->get('/api/v0/:user_action/:token')->to('api#get_v0'); $r->get('/api/v0/:user_action/:token')->to('api#get_v0');

View file

@ -10,6 +10,13 @@ sub about {
version => $self->app->config->{version} // 'UNKNOWN' ); version => $self->app->config->{version} // 'UNKNOWN' );
} }
sub changelog {
my ($self) = @_;
$self->render( 'changelog',
version => $self->app->config->{version} // 'UNKNOWN' );
}
sub imprint { sub imprint {
my ($self) = @_; my ($self) = @_;

View file

@ -13,13 +13,14 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col s3 m3 l3"> <div class="col s12 m12 l4 center-align" style="margin-top: 1em;">
</div>
<div class="col s6 m6 l6 center-align">
<a href="https://twitter.com/derfnull" class="waves-effect waves-light btn"><i class="material-icons left">message</i>Kontakt</a> <a href="https://twitter.com/derfnull" class="waves-effect waves-light btn"><i class="material-icons left">message</i>Kontakt</a>
</div>
<div class="col s12 m12 l4 center-align" style="margin-top: 1em;">
<a href="https://github.com/derf/travelynx/issues" class="waves-effect waves-light btn"><i class="material-icons left">bug_report</i>Bugs?</a> <a href="https://github.com/derf/travelynx/issues" class="waves-effect waves-light btn"><i class="material-icons left">bug_report</i>Bugs?</a>
</div> </div>
<div class="col s3 m3 l3"> <div class="col s12 m12 l4 center-align" style="margin-top: 1em;">
<a href="/changelog" class="waves-effect waves-light btn"><i class="material-icons left">list</i>Changelog</a>
</div> </div>
</div> </div>

View file

@ -0,0 +1,30 @@
<h1>Changelog</h1>
<div class="row">
<div class="col s12 m1 l1">
1.1
</div>
<div class="col s12 m11 l11">
<ul>
<li>Öffentlicher Status unter „/status/<i>name</i>“ (opt-in, muss unter <a href="/account/privacy">account/privacy</a> aktiviert werden)</li>
</ul>
</div>
</div>
<div class="row">
<div class="col s12 m1 l1">
1.0
</div>
<div class="col s12 m11 l11">
<ul>
<li>Stationswahl per Geokoordinaten</li>
<li>Manueller Checkin und automatischer Checkout</li>
<li>History und Statistiken</li>
<li>API zur Statusabfrage</li>
</ul>
</div>
</div>
% if (-e 'templates/imprint.html.ep') {
%= include 'imprint'
% }