Redirects snapshot users to changelog hosted in the repository

This commit is contained in:
Manuel Cortez 2017-11-10 12:01:43 -06:00
parent a13dd756b1
commit efc6843ee2

View File

@ -1521,6 +1521,9 @@ class Controller(object):
os.chdir("../../") os.chdir("../../")
def view_changelog(self, *args, **kwargs): def view_changelog(self, *args, **kwargs):
if application.snapshot == True:
webbrowser.open("https://github.com/manuelcortez/twblue/blob/next-gen/doc/changelog.md")
else:
lang = localization.get("documentation") lang = localization.get("documentation")
os.chdir("documentation/%s" % (lang,)) os.chdir("documentation/%s" % (lang,))
webbrowser.open("changelog.html") webbrowser.open("changelog.html")