mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added a live tv status page
This commit is contained in:
parent
9db90f464a
commit
0cadf2308a
36 changed files with 152 additions and 225 deletions
|
@ -20,37 +20,6 @@
|
|||
|
||||
$('#selectActiveService', page).html(serviceOptions).selectmenu('refresh');
|
||||
|
||||
var service = liveTvInfo.Services.filter(function (s) {
|
||||
return s.Name == liveTvInfo.ActiveServiceName;
|
||||
|
||||
})[0] || {};
|
||||
|
||||
if (service.HomePageUrl) {
|
||||
$('#activeServiceName', page).html('<a href="' + service.HomePageUrl + '" target="_blank">' + liveTvInfo.ActiveServiceName + '</a>').trigger('create');
|
||||
} else {
|
||||
$('#activeServiceName', page).html(liveTvInfo.ActiveServiceName);
|
||||
}
|
||||
|
||||
var versionHtml = service.Version || 'Unknown';
|
||||
|
||||
if (service.HasUpdateAvailable) {
|
||||
versionHtml += ' <span style="color:green; margin-left: .25em;">(Update available)</span>';
|
||||
} else {
|
||||
versionHtml += '<img src="css/images/checkmarkgreen.png" style="height: 17px; margin-left: 10px; margin-right: 0; position: relative; top: 4px;" /> Up to date!';
|
||||
}
|
||||
$('#activeServiceVersion', page).html(versionHtml);
|
||||
|
||||
var status = liveTvInfo.Status;
|
||||
|
||||
if (status != 'Ok') {
|
||||
|
||||
if (liveTvInfo.StatusMessage) {
|
||||
status += ' (' + liveTvInfo.StatusMessage + ')';
|
||||
}
|
||||
status = '<span style="color:red;">' + status + '</span>';
|
||||
}
|
||||
$('#activeServiceStatus', page).html(status);
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue