summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--examples/travelynx.conf10
-rw-r--r--templates/about.html.ep5
3 files changed, 16 insertions, 2 deletions
diff --git a/README.md b/README.md
index a244bcc..4a9435d 100644
--- a/README.md
+++ b/README.md
@@ -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.
diff --git a/examples/travelynx.conf b/examples/travelynx.conf
index 81ecd9f..d61c480 100644
--- a/examples/travelynx.conf
+++ b/examples/travelynx.conf
@@ -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
diff --git a/templates/about.html.ep b/templates/about.html.ep
index ffda08d..bced6b6 100644
--- a/templates/about.html.ep
+++ b/templates/about.html.ep
@@ -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>