mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #393 - Enhance offline display
This commit is contained in:
parent
46fb845918
commit
9e05644d21
3 changed files with 17 additions and 5 deletions
|
@ -103,7 +103,10 @@
|
||||||
<table class="detailPageContent primaryDetailPageContent">
|
<table class="detailPageContent primaryDetailPageContent">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="vertical-align: top; padding: 10px 1em 10px 0;">
|
<td style="vertical-align: top; padding: 10px 1em 10px 0;">
|
||||||
<div id="itemImage" class="itemImageContainer"></div>
|
<div class="itemImageContainer">
|
||||||
|
<div id="itemImage">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td style="vertical-align: top; padding: 0; position: relative;">
|
<td style="vertical-align: top; padding: 0; position: relative;">
|
||||||
<p><span class="itemName"></span><span class="itemMiscInfo" style="display: inline;"></span></p>
|
<p><span class="itemName"></span><span class="itemMiscInfo" style="display: inline;"></span></p>
|
||||||
|
@ -123,6 +126,9 @@
|
||||||
<a href="#" id="lnkNextItem" class="lnkNextItem lnkSibling hide">Next →</a>
|
<a href="#" id="lnkNextItem" class="lnkNextItem lnkSibling hide">Next →</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui-body-a" style="text-align: center; padding: .25em 0 .5em;">
|
<div class="ui-body-a" style="text-align: center; padding: .25em 0 .5em;">
|
||||||
|
<span id="offlineIndicator" style="margin-left: .5em; display: none;">
|
||||||
|
<span style="background: #cc3333; padding: 5px 1em; border-radius: 5px;">OFFLINE</span>
|
||||||
|
</span>
|
||||||
<span id="playButtonContainer" style="display: none;">
|
<span id="playButtonContainer" style="display: none;">
|
||||||
<button id="btnPlay" type="button" data-icon="play" data-inline="true" data-mini="true">Play</button>
|
<button id="btnPlay" type="button" data-icon="play" data-inline="true" data-mini="true">Play</button>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -24,7 +24,13 @@
|
||||||
renderDetails(page, item, context);
|
renderDetails(page, item, context);
|
||||||
LibraryBrowser.renderDetailPageBackdrop(page, item);
|
LibraryBrowser.renderDetailPageBackdrop(page, item);
|
||||||
|
|
||||||
if (MediaPlayer.canPlay(item)) {
|
if (item.LocationType == "Offline") {
|
||||||
|
$('#offlineIndicator', page).show();
|
||||||
|
} else {
|
||||||
|
$('#offlineIndicator', page).hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (MediaPlayer.canPlay(item) && item.LocationType !== "Offline") {
|
||||||
$('#playButtonContainer', page).show();
|
$('#playButtonContainer', page).show();
|
||||||
} else {
|
} else {
|
||||||
$('#playButtonContainer', page).hide();
|
$('#playButtonContainer', page).hide();
|
||||||
|
@ -32,7 +38,7 @@
|
||||||
|
|
||||||
Dashboard.getCurrentUser().done(function (user) {
|
Dashboard.getCurrentUser().done(function (user) {
|
||||||
|
|
||||||
if (user.Configuration.IsAdministrator) {
|
if (user.Configuration.IsAdministrator && item.LocationType !== "Offline") {
|
||||||
$('#editButtonContainer', page).show();
|
$('#editButtonContainer', page).show();
|
||||||
} else {
|
} else {
|
||||||
$('#editButtonContainer', page).hide();
|
$('#editButtonContainer', page).hide();
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
renderHeader(page, item);
|
renderHeader(page, item);
|
||||||
|
|
||||||
name = item.Name;
|
var name = item.Name;
|
||||||
|
|
||||||
$('#itemImage', page).html(LibraryBrowser.getDetailImageHtml(item));
|
$('#itemImage', page).html(LibraryBrowser.getDetailImageHtml(item));
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
|
|
||||||
Dashboard.getCurrentUser().done(function (user) {
|
Dashboard.getCurrentUser().done(function (user) {
|
||||||
|
|
||||||
if (user.Configuration.IsAdministrator) {
|
if (user.Configuration.IsAdministrator && item.LocationType !== "Offline") {
|
||||||
$('#editButtonContainer', page).show();
|
$('#editButtonContainer', page).show();
|
||||||
} else {
|
} else {
|
||||||
$('#editButtonContainer', page).hide();
|
$('#editButtonContainer', page).hide();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue