make version link in footer link to changelog, not commit log

This commit is contained in:
codl 2019-07-23 02:17:01 +02:00
parent f01b5b1511
commit ac76dd4ad1
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## next
* version number in footer now links to changelog instead of commit log
## v1.5.3
Released 2019-07-11

2
app.py
View File

@ -16,7 +16,7 @@ default_config = {
"HTTPS": True,
"SENTRY_CONFIG": {},
"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://",
}

View File

@ -1,4 +1,4 @@
from app import app
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'])