mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
30 lines
770 B
JavaScript
30 lines
770 B
JavaScript
define([], function () {
|
|
|
|
function getTabs() {
|
|
return [
|
|
{
|
|
href: 'about.html',
|
|
name: Globalize.translate('TabAbout')
|
|
},
|
|
{
|
|
href: 'log.html',
|
|
name: Globalize.translate('TabLogs')
|
|
},
|
|
{
|
|
href: 'supporterkey.html',
|
|
name: Globalize.translate('TabEmbyPremiere')
|
|
}];
|
|
}
|
|
|
|
return function (view, params) {
|
|
|
|
var self = this;
|
|
|
|
view.addEventListener('viewbeforeshow', function (e) {
|
|
LibraryMenu.setTabs('helpadmin', 0, getTabs);
|
|
var elem = view.querySelector('#appVersionNumber');
|
|
|
|
elem.innerHTML = elem.innerHTML.replace('{0}', ConnectionManager.appVersion());
|
|
});
|
|
}
|
|
}); |