Replace references to Danbooru with Danbooru.config.app_name.

* Also replace references to github with a configurable repo.
* Plus link commit ref in footer to the commit in the repo.
This commit is contained in:
evazion
2016-10-24 18:06:39 -05:00
parent 58ef469a76
commit fd4eb8fa08
4 changed files with 22 additions and 6 deletions

View File

@@ -34,6 +34,22 @@ module Danbooru
contact_email
end
def source_code_url
"https://github.com/r888888888/danbooru"
end
def commit_url(hash)
"#{source_code_url}/commit/#{hash}"
end
def releases_url
"#{source_code_url}/releases"
end
def issues_url
"#{source_code_url}/issues"
end
# Stripped of any special characters.
def safe_app_name
app_name.gsub(/[^a-zA-Z0-9_-]/, "_")