mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-01 13:43:03 +01:00
Merge pull request #2028 from Retrospring/feature/custom-source
Add customizable source URL
This commit is contained in:
commit
8b90097d5e
4 changed files with 10 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
·
|
·
|
||||||
= link_to t(".about"), about_path
|
= 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
|
= link_to t(".terms"), terms_path
|
||||||
·
|
·
|
||||||
|
|
|
@ -108,3 +108,6 @@ sentry_dsn: ''
|
||||||
# sso: "CANNY_SSO_TOKEN_HERE"
|
# sso: "CANNY_SSO_TOKEN_HERE"
|
||||||
# feature_board: "CANNY_FEATURE_BOARD_TOKEN"
|
# feature_board: "CANNY_FEATURE_BOARD_TOKEN"
|
||||||
# bug_board: "CANNY_BUGS_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"
|
|
@ -25,6 +25,8 @@ module Retrospring
|
||||||
|
|
||||||
def minor = [month.to_s.rjust(2, "0"), day.to_s.rjust(2, "0")].join
|
def minor = [month.to_s.rjust(2, "0"), day.to_s.rjust(2, "0")].join
|
||||||
|
|
||||||
|
def source_url = APP_CONFIG[:source_url] || "https://github.com/retrospring/retrospring"
|
||||||
|
|
||||||
def to_a = [year.to_s, minor, patch.to_s]
|
def to_a = [year.to_s, minor, patch.to_s]
|
||||||
|
|
||||||
def to_s = [to_a.join("."), suffix].join
|
def to_s = [to_a.join("."), suffix].join
|
||||||
|
|
|
@ -13,6 +13,10 @@ describe "about/index_advanced.html.haml", type: :view do
|
||||||
|
|
||||||
subject(:rendered) { render }
|
subject(:rendered) { render }
|
||||||
|
|
||||||
|
before do
|
||||||
|
allow(APP_CONFIG).to receive(:dig).and_call_original
|
||||||
|
end
|
||||||
|
|
||||||
context "registrations are enabled" do
|
context "registrations are enabled" do
|
||||||
before do
|
before do
|
||||||
allow(APP_CONFIG).to receive(:dig).with(:features, :registration, :enabled).and_return(true)
|
allow(APP_CONFIG).to receive(:dig).with(:features, :registration, :enabled).and_return(true)
|
||||||
|
|
Loading…
Reference in a new issue