From 93ca0e6e75fe5914731970c4f54dc925187487e4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 2 Feb 2021 18:43:48 +0100 Subject: link to source code on about page --- README.md | 3 ++- examples/travelynx.conf | 10 ++++++++++ templates/about.html.ep | 5 ++++- 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 @@
travelynx v<%= stash('version') // '???' %>
Entwickelt von @derfnull
+ Quelltext lizensiert unter AGPL v3

Backend: Travel::Status::DE::IRIS v<%= $Travel::Status::DE::IRIS::VERSION %>
@@ -17,7 +18,9 @@ messageKontakt
- bug_reportBugs? + % if (my $issue_url = app->config->{ref}{issues}) { + bug_reportBugs? + % }
listChangelog -- cgit v1.2.3