mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
display path on detail page
This commit is contained in:
parent
1e450d45a2
commit
1c9f49e4f3
2 changed files with 17 additions and 11 deletions
|
@ -152,6 +152,7 @@
|
||||||
<p class="itemExternalLinks"></p>
|
<p class="itemExternalLinks"></p>
|
||||||
<div class="mediaInfo"></div>
|
<div class="mediaInfo"></div>
|
||||||
<p class="itemTags"></p>
|
<p class="itemTags"></p>
|
||||||
|
<p class="itemPath"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="childrenCollapsible" class="hide detailSection inlineDetailSection">
|
<div id="childrenCollapsible" class="hide detailSection inlineDetailSection">
|
||||||
|
|
|
@ -222,16 +222,6 @@
|
||||||
|
|
||||||
renderSeriesAirTime(page, item, context);
|
renderSeriesAirTime(page, item, context);
|
||||||
|
|
||||||
var detailsSection = $('#detailsSection', page);
|
|
||||||
var elem = $('.detailSectionContent', detailsSection)[0];
|
|
||||||
var text = elem.textContent || elem.innerText;
|
|
||||||
|
|
||||||
if (!text.trim()) {
|
|
||||||
detailsSection.addClass('hide');
|
|
||||||
} else {
|
|
||||||
detailsSection.removeClass('hide');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (item.Players) {
|
if (item.Players) {
|
||||||
$('#players', page).show().html(item.Players + ' Player');
|
$('#players', page).show().html(item.Players + ' Player');
|
||||||
} else {
|
} else {
|
||||||
|
@ -244,6 +234,21 @@
|
||||||
$('#artist', page).hide();
|
$('#artist', page).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var detailsSection = $('#detailsSection', page);
|
||||||
|
var elem = $('.detailSectionContent', detailsSection)[0];
|
||||||
|
var text = elem.textContent || elem.innerText;
|
||||||
|
|
||||||
|
if (!text.trim()) {
|
||||||
|
detailsSection.addClass('hide');
|
||||||
|
} else {
|
||||||
|
detailsSection.removeClass('hide');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.Path) {
|
||||||
|
$('.itemPath', page).show().html('Path: ' + '<span style="font-size:13px;">' + item.Path + '</span>');
|
||||||
|
} else {
|
||||||
|
$('.itemPath', page).hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderSiblingLinks(page, item) {
|
function renderSiblingLinks(page, item) {
|
||||||
|
@ -291,7 +296,7 @@
|
||||||
userId: Dashboard.getCurrentUserId(),
|
userId: Dashboard.getCurrentUserId(),
|
||||||
limit: item.Type == "MusicAlbum" ? 6 : 8
|
limit: item.Type == "MusicAlbum" ? 6 : 8
|
||||||
};
|
};
|
||||||
|
|
||||||
if (item.Type == "Movie") {
|
if (item.Type == "Movie") {
|
||||||
promise = ApiClient.getSimilarMovies(item.Id, options);
|
promise = ApiClient.getSimilarMovies(item.Id, options);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue