mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Show production studio
This commit is contained in:
parent
61d548a3d6
commit
5db134a859
2 changed files with 33 additions and 0 deletions
|
@ -143,6 +143,11 @@
|
|||
<div class="writersLabel label"></div>
|
||||
<div class="writers content focuscontainer-x"></div>
|
||||
</div>
|
||||
|
||||
<div class="detailsGroupItem studiosGroup hide">
|
||||
<div class="studiosLabel label"></div>
|
||||
<div class="studios content focuscontainer-x"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1031,6 +1031,33 @@ function renderDirector(page, item, context) {
|
|||
}
|
||||
}
|
||||
|
||||
function renderStudio(page, item, context) {
|
||||
const studios = item.Studios || [];
|
||||
|
||||
const html = studios.map(function (studio) {
|
||||
return '<a style="color:inherit;" class="button-link" is="emby-linkbutton" href="' + appRouter.getRouteUrl({
|
||||
Name: studio.Name,
|
||||
Type: 'Studio',
|
||||
ServerId: item.ServerId,
|
||||
Id: studio.Id
|
||||
}, {
|
||||
context: context
|
||||
}) + '">' + escapeHtml(studio.Name) + '</a>';
|
||||
}).join(', ');
|
||||
|
||||
const studiosLabel = page.querySelector('.studiosLabel');
|
||||
studiosLabel.innerHTML = globalize.translate(studios.length > 1 ? 'Studios' : 'Studio');
|
||||
const studiosValue = page.querySelector('.studios');
|
||||
studiosValue.innerHTML = html;
|
||||
|
||||
const studiosGroup = page.querySelector('.studiosGroup');
|
||||
if (studios.length) {
|
||||
studiosGroup.classList.remove('hide');
|
||||
} else {
|
||||
studiosGroup.classList.add('hide');
|
||||
}
|
||||
}
|
||||
|
||||
function renderMiscInfo(page, item) {
|
||||
const primaryItemMiscInfo = page.querySelectorAll('.itemMiscInfo-primary');
|
||||
|
||||
|
@ -1079,6 +1106,7 @@ function renderDetails(page, item, apiClient, context, isStatic) {
|
|||
renderMoreFromSeason(page, item, apiClient);
|
||||
renderMoreFromArtist(page, item, apiClient);
|
||||
renderDirector(page, item, context);
|
||||
renderStudio(page, item, context);
|
||||
renderWriter(page, item, context);
|
||||
renderGenres(page, item, context);
|
||||
renderChannelGuide(page, apiClient, item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue