link to source code on about page

This commit is contained in:
Daniel Friesel 2021-02-02 18:43:48 +01:00
parent 0088f11eb0
commit 93ca0e6e75
3 changed files with 16 additions and 2 deletions

View file

@ -171,4 +171,5 @@ both for personal/internal and public use, under the following conditions.
changes available to the public.
The easiest way of making changes available is by maintaining a public fork of
the Git repository. A tarball is also acceptable.
the Git repository. A tarball is also acceptable. Please change the `source`
ref in travelynx.conf if you are using a fork with custom changes.

View file

@ -48,6 +48,16 @@
from => die("Changeme!"),
},
# Links to source code and issue tracker shown on the about page.
# Please change them if you are using a fork.
ref => {
# Optional
issues => 'https://github.com/derf/travelynx/issues',
# Mandatory
source => 'https://github.com/derf/travelynx',
},
# Secrets used for cookie signing and verification. Must contain at least
# one random string. If you specify several strings, the first one will
# be used for signing new cookies, and the remaining ones will still be

View file

@ -2,6 +2,7 @@
<div class="col s12">
<a href="https://finalrewind.org/projects/travelynx">travelynx</a> v<%= stash('version') // '???' %><br/>
Entwickelt von <a href="https://twitter.com/derfnull">@derfnull</a><br/>
<a href="<%= app->config->{ref}{source} // 'https://github.com/derf/travelynx' %>">Quelltext</a> lizensiert unter AGPL v3<br/><br/>
Backend:
<a href="https://finalrewind.org/projects/Travel-Status-DE-IRIS/">Travel::Status::DE::IRIS</a>
v<%= $Travel::Status::DE::IRIS::VERSION %><br/>
@ -17,7 +18,9 @@
<a href="https://finalrewind.org/me/" 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>
% if (my $issue_url = app->config->{ref}{issues}) {
<a href="<%= $issue_url %>" class="waves-effect waves-light btn"><i class="material-icons left">bug_report</i>Bugs?</a>
% }
</div>
<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>