mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Same change as earlier in main.js, simpler way to set the yunohost version footer
This commit is contained in:
parent
85beae3a98
commit
a572552866
1 changed files with 2 additions and 5 deletions
|
@ -14,11 +14,8 @@
|
||||||
c.flash('warning', y18n.t('warning_first_user'));
|
c.flash('warning', y18n.t('warning_first_user'));
|
||||||
}
|
}
|
||||||
|
|
||||||
c.api("GET", "/diagnosis/show?full", {}, function(data) {
|
c.api('GET', '/versions', {}, function(data) {
|
||||||
c.hideLoader();
|
$('#yunohost-version').html(y18n.t('footer_version', [data.yunohost.version, data.yunohost.repo]));
|
||||||
basesystem = data.reports.filter(function(r) { return r.id == "basesystem"; })[0];
|
|
||||||
version_info = basesystem.items.filter(function(i) { return (i.meta && i.meta.test && i.meta.test == "ynh_versions"); })[0];
|
|
||||||
$('#yunohost-version').html(y18n.t('footer_version', [version_info.data.main_version, version_info.data.repo]));
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue