return new version as version

This commit is contained in:
j 2016-01-13 10:47:20 +05:30
parent 4ed0eee032
commit d72158d78f
2 changed files with 4 additions and 3 deletions

View file

@ -199,6 +199,7 @@ def getVersion(data):
'''
response = {
'current': settings.MINOR_VERSION,
'version': settings.MINOR_VERSION,
'upgrade': False,
}
if settings.MINOR_VERSION == 'git':
@ -225,7 +226,7 @@ def getVersion(data):
current = current_version('openmedialibrary')
response['current'] = current
new = release['modules']['openmedialibrary']['version']
response['new'] = new
response['version'] = new
response['update'] = current < new
return response
actions.register(getVersion, cache=False)

View file

@ -31,7 +31,7 @@ oml.ui.updateDialog = function() {
.html(
oml.version != 'git'
? Ox._(
'You are running Open Media Library version {0}.<br><br>',
'You are running Open Media Library version<br>{0}.<br><br>',
[oml.version]
)
: Ox._(
@ -161,4 +161,4 @@ oml.ui.updateDialog = function() {
return that;
};
};