diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 0ded6bb6a2b7014759d77f5af05c8f7cdb8a737e..2cf1f5874ebe6c97b8cb0e5f4a48141892624d77 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1720,6 +1720,7 @@ sub startup { $r->get('/')->to('traveling#homepage'); $r->get('/about')->to('static#about'); $r->get('/api')->to('api#documentation'); + $r->get('/changelog')->to('static#changelog'); $r->get('/impressum')->to('static#imprint'); $r->get('/imprint')->to('static#imprint'); $r->get('/api/v0/:user_action/:token')->to('api#get_v0'); diff --git a/lib/Travelynx/Controller/Static.pm b/lib/Travelynx/Controller/Static.pm index 09d7f51352969b5dfea49621719cea68bb5082b0..e0d56f27a51c6d6b6e5b0354dc5b9e9191302c81 100644 --- a/lib/Travelynx/Controller/Static.pm +++ b/lib/Travelynx/Controller/Static.pm @@ -10,6 +10,13 @@ sub about { version => $self->app->config->{version} // 'UNKNOWN' ); } +sub changelog { + my ($self) = @_; + + $self->render( 'changelog', + version => $self->app->config->{version} // 'UNKNOWN' ); +} + sub imprint { my ($self) = @_; diff --git a/templates/about.html.ep b/templates/about.html.ep index c16992d40fd00c31beaef18a79c14aa036bb3472..17424f18b1cb94056b0d907fb884f4b024a5878b 100644 --- a/templates/about.html.ep +++ b/templates/about.html.ep @@ -13,13 +13,14 @@
-
-
-
+ + - diff --git a/templates/changelog.html.ep b/templates/changelog.html.ep new file mode 100644 index 0000000000000000000000000000000000000000..7a01bfd9257b581cb491fe2a3330a39f4b1bc029 --- /dev/null +++ b/templates/changelog.html.ep @@ -0,0 +1,30 @@ +

Changelog

+ +
+
+ 1.1 +
+
+
    +
  • Öffentlicher Status unter „/status/name“ (opt-in, muss unter account/privacy aktiviert werden)
  • +
+
+
+ +
+
+ 1.0 +
+
+
    +
  • Stationswahl per Geokoordinaten
  • +
  • Manueller Checkin und automatischer Checkout
  • +
  • History und Statistiken
  • +
  • API zur Statusabfrage
  • +
+
+
+ +% if (-e 'templates/imprint.html.ep') { +%= include 'imprint' +% }