fix software update panel (layout)
This commit is contained in:
parent
326bd4c13d
commit
1346666569
1 changed files with 14 additions and 14 deletions
|
@ -35,25 +35,23 @@ oml.ui.appDialog = function() {
|
||||||
})
|
})
|
||||||
.appendTo($logo);
|
.appendTo($logo);
|
||||||
if (id == 'update') {
|
if (id == 'update') {
|
||||||
$content.html('<h1><b>' + title + '</b></h1>');
|
var titleHTML = '<h1><b>' + title + '</b></h1>'
|
||||||
var $update = Ox.Element()
|
$content.html(titleHTML);
|
||||||
.css({
|
|
||||||
paddingTop: '4px',
|
|
||||||
paddingBottom: '16px'
|
|
||||||
}).appendTo($content);
|
|
||||||
oml.api.getVersion(function(response) {
|
oml.api.getVersion(function(response) {
|
||||||
if (response.data.update) {
|
if (response.data.update) {
|
||||||
if (response.data.current == 'git') {
|
if (response.data.current == 'git') {
|
||||||
$update.html(
|
$content.html(
|
||||||
'<p>'
|
titleHTML
|
||||||
|
+ '<p>'
|
||||||
+ Ox._('A new version of Open Media Library is available in git.')
|
+ Ox._('A new version of Open Media Library is available in git.')
|
||||||
+ '<br><br>'
|
+ '<br><br>'
|
||||||
+ Ox._('To update run:')
|
+ Ox._('To update run:')
|
||||||
+ ' <code>./ctl update</code>')
|
+ ' <code>./ctl update</code>')
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$update.html(
|
$content.html(
|
||||||
'<p>'
|
titleHTML
|
||||||
|
+ '<p>'
|
||||||
+ Ox._('You are running Version {0}.', [response.data.current])
|
+ Ox._('You are running Version {0}.', [response.data.current])
|
||||||
+ '<br><br>'
|
+ '<br><br>'
|
||||||
+ Ox._('A new version of Open Media Library is available.')
|
+ Ox._('A new version of Open Media Library is available.')
|
||||||
|
@ -78,14 +76,16 @@ oml.ui.appDialog = function() {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (response.data.current == 'git') {
|
if (response.data.current == 'git') {
|
||||||
$update.html(
|
$content.html(
|
||||||
'<p>'
|
titleHTML
|
||||||
|
+ '<p>'
|
||||||
+ Ox._('You are up to date.')
|
+ Ox._('You are up to date.')
|
||||||
+ '</p>'
|
+ '</p>'
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$update.html(
|
$content.html(
|
||||||
'<p>'
|
titleHTML
|
||||||
|
+ '<p>'
|
||||||
+ Ox._('You are running Version {0}.', [response.data.current])
|
+ Ox._('You are running Version {0}.', [response.data.current])
|
||||||
+ '<br><br>'
|
+ '<br><br>'
|
||||||
+ Ox._('You are up to date.')
|
+ Ox._('You are up to date.')
|
||||||
|
|
Loading…
Reference in a new issue