make version link in footer link to changelog, not commit log
This commit is contained in:
parent
f01b5b1511
commit
ac76dd4ad1
|
@ -1,3 +1,7 @@
|
||||||
|
## next
|
||||||
|
|
||||||
|
* version number in footer now links to changelog instead of commit log
|
||||||
|
|
||||||
## v1.5.3
|
## v1.5.3
|
||||||
|
|
||||||
Released 2019-07-11
|
Released 2019-07-11
|
||||||
|
|
2
app.py
2
app.py
|
@ -16,7 +16,7 @@ default_config = {
|
||||||
"HTTPS": True,
|
"HTTPS": True,
|
||||||
"SENTRY_CONFIG": {},
|
"SENTRY_CONFIG": {},
|
||||||
"REPO_URL": "https://github.com/codl/forget",
|
"REPO_URL": "https://github.com/codl/forget",
|
||||||
"COMMIT_URL": "https://github.com/codl/forget/commits/{hash}",
|
"CHANGELOG_URL": "https://github.com/codl/forget/blob/{hash}/CHANGELOG.markdown",
|
||||||
"REDIS_URI": "redis://",
|
"REDIS_URI": "redis://",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from app import app
|
from app import app
|
||||||
|
|
||||||
def url_for_version(ver):
|
def url_for_version(ver):
|
||||||
return app.config['COMMIT_URL'].format(hash=ver['full-revisionid'])
|
return app.config['CHANGELOG_URL'].format(hash=ver['full-revisionid'])
|
||||||
|
|
Loading…
Reference in New Issue