diff --git a/static/js/appDialog.js b/static/js/appDialog.js index 87d55f6..75d3138 100644 --- a/static/js/appDialog.js +++ b/static/js/appDialog.js @@ -35,25 +35,23 @@ oml.ui.appDialog = function() { }) .appendTo($logo); if (id == 'update') { - $content.html('
' + $content.html( + titleHTML + + '
'
+ Ox._('A new version of Open Media Library is available in git.')
+ '
'
+ Ox._('To update run:')
+ ' ./ctl update
')
);
} else {
- $update.html(
- '
' + $content.html( + titleHTML + + '
'
+ Ox._('You are running Version {0}.', [response.data.current])
+ '
'
+ Ox._('A new version of Open Media Library is available.')
@@ -78,14 +76,16 @@ oml.ui.appDialog = function() {
}
} else {
if (response.data.current == 'git') {
- $update.html(
- '
' + $content.html( + titleHTML + + '
' + Ox._('You are up to date.') + '
' ); } else { - $update.html( - '' + $content.html( + titleHTML + + '
'
+ Ox._('You are running Version {0}.', [response.data.current])
+ '
'
+ Ox._('You are up to date.')