diff --git a/app/views/shared/_links.html.haml b/app/views/shared/_links.html.haml index c330142b..dc536b59 100644 --- a/app/views/shared/_links.html.haml +++ b/app/views/shared/_links.html.haml @@ -5,7 +5,7 @@ · = link_to t(".about"), about_path · - = link_to t(".source"), "https://github.com/Retrospring/retrospring" + = link_to t(".source"), Retrospring::Version.source_url · = link_to t(".terms"), terms_path · diff --git a/config/justask.yml.example b/config/justask.yml.example index 6369428d..cb4f1eee 100644 --- a/config/justask.yml.example +++ b/config/justask.yml.example @@ -108,3 +108,6 @@ sentry_dsn: '' # sso: "CANNY_SSO_TOKEN_HERE" # feature_board: "CANNY_FEATURE_BOARD_TOKEN" # bug_board: "CANNY_BUGS_BOARD_TOKEN" + +# If you run a fork, please uncomment and adjust this url! +# source_url: "https://github.com/retrospring/retrospring" \ No newline at end of file diff --git a/lib/retrospring/version.rb b/lib/retrospring/version.rb index 0152d9c8..4c2bdc4a 100644 --- a/lib/retrospring/version.rb +++ b/lib/retrospring/version.rb @@ -25,6 +25,8 @@ module Retrospring def minor = [month.to_s.rjust(2, "0"), day.to_s.rjust(2, "0")].join + def source_url = APP_CONFIG.dig(:source_url) || "https://github.com/retrospring/retrospring" + def to_a = [year.to_s, minor, patch.to_s] def to_s = [to_a.join("."), suffix].join