diff --git a/static/js/appDialog.js b/static/js/appDialog.js index 115b910..87d55f6 100644 --- a/static/js/appDialog.js +++ b/static/js/appDialog.js @@ -44,9 +44,21 @@ oml.ui.appDialog = function() { oml.api.getVersion(function(response) { if (response.data.update) { if (response.data.current == 'git') { - $update.html(Ox._('A new version of Open Media Library is available in git.
To update run: ./ctl update')); + $update.html( + '

' + + Ox._('A new version of Open Media Library is available in git.') + + '

' + + Ox._('To update run:') + + ' ./ctl update') + ); } else { - $update.html(Ox._('A new version of Open Media Library is available')); + $update.html( + '

' + + Ox._('You are running Version {0}.', [response.data.current]) + + '

' + + Ox._('A new version of Open Media Library is available.') + + '

' + ); Ox.Button({ id: 'update', title: Ox._('Install Now') @@ -54,7 +66,7 @@ oml.ui.appDialog = function() { click: function() { this.options({ disabled: true, - title: 'Installing...' + title: Ox._('Installing...') }); oml.api.restart({update: true},function(response) { if (response.status.code == 200) { @@ -66,9 +78,19 @@ oml.ui.appDialog = function() { } } else { if (response.data.current == 'git') { - $update.html(Ox._('You\'re up to date')); + $update.html( + '

' + + Ox._('You are up to date.') + + '

' + ); } else { - $update.html(Ox._('You are running Version {0}. You\'re up to date.', [response.data.current])); + $update.html( + '

' + + Ox._('You are running Version {0}.', [response.data.current]) + + '

' + + Ox._('You are up to date.') + + '

' + ); } } });