fixed admin version display, thanks Marin

This commit is contained in:
mdipierro
2012-09-05 10:47:46 -05:00
parent 6c55cb33cb
commit 607941c54d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.7 (2012-09-05 09:26:33) stable
Version 2.0.7 (2012-09-05 10:47:43) stable
+1 -1
View File
@@ -137,7 +137,7 @@ def check_version():
elif new_version != True:
return A(T('web2py is up to date'), _href=WEB2PY_URL)
elif platform.system().lower() in ('windows','win32','win64') and os.path.exists("web2py.exe"):
return SPAN('You should upgrade to version %s' % version_number)
return SPAN('You should upgrade to version %s.%s.%s' % version_number[:3])
else:
return sp_button(URL('upgrade_web2py'), T('upgrade now')) \
+ XML(' <strong class="upgrade_version">%s.%s.%s</strong>' \