summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-03 10:32:58 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-03 10:32:58 +0200
commitbf2dae7c45ab9bd537527f0234564f1189bd65f9 (patch)
tree592f84fdff897c41e82e4a6b1e97dbac1f4318cb
parentaf5c26bf8a4a75935d8d34f17576a135a8eabff9 (diff)
Add changelog
-rwxr-xr-xlib/Travelynx.pm1
-rw-r--r--lib/Travelynx/Controller/Static.pm7
-rw-r--r--templates/about.html.ep9
-rw-r--r--templates/changelog.html.ep30
4 files changed, 43 insertions, 4 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 0ded6bb..2cf1f58 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 09d7f51..e0d56f2 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 c16992d..17424f1 100644
--- a/templates/about.html.ep
+++ b/templates/about.html.ep
@@ -13,13 +13,14 @@
</div>
<div class="row">
- <div class="col s3 m3 l3">
- </div>
- <div class="col s6 m6 l6 center-align">
+ <div class="col s12 m12 l4 center-align" style="margin-top: 1em;">
<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>
</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>
diff --git a/templates/changelog.html.ep b/templates/changelog.html.ep
new file mode 100644
index 0000000..7a01bfd
--- /dev/null
+++ b/templates/changelog.html.ep
@@ -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'
+% }