Add generic changelog link for rattail/tailbone packages

i.e. production changelog, when not running from src
This commit is contained in:
Lance Edgar 2017-08-13 21:22:44 -05:00
parent cbf3a9e939
commit 56910ea4c1

View file

@ -249,10 +249,12 @@ class UpgradeView(MasterView):
else: else:
return 'https://rattailproject.org/trac/log/{}/?rev={}&stop_rev={}&limit=100'.format( return 'https://rattailproject.org/trac/log/{}/?rev={}&stop_rev={}&limit=100'.format(
projects[project], new_version, old_version) projects[project], new_version, old_version)
elif re.match(r'^\d+\.\d+\.\d+$', new_version):
return 'https://rattailproject.org/trac/browser/{}/CHANGES.rst?rev=v{}'.format(
projects[project], new_version)
else: else:
# TODO: use changelog from latest docs return 'https://rattailproject.org/trac/browser/{}/CHANGES.rst'.format(
# return 'https://rattailproject.org/buildbot/docs/{}/changelog.html'.format(projects[project]) projects[project])
pass
def render_diff_field(self, field, diff): def render_diff_field(self, field, diff):
old_version = diff.old_value(field) old_version = diff.old_value(field)