diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-02-02 18:43:48 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-02-02 18:43:48 +0100 |
commit | 93ca0e6e75fe5914731970c4f54dc925187487e4 (patch) | |
tree | 48c7c4b517c08665fdc0e9dcc3a7c6fb1044b566 | |
parent | 0088f11eb03b69608ac6133f00df088d0a9ff16c (diff) |
link to source code on about page1.19.4
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | examples/travelynx.conf | 10 | ||||
-rw-r--r-- | templates/about.html.ep | 5 |
3 files changed, 16 insertions, 2 deletions
@@ -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> |