1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Added original (native) title

This commit is contained in:
Daniel Hartung 2019-09-11 17:59:00 +02:00
parent a640781d4e
commit 1a9432b642
2 changed files with 21 additions and 1 deletions

View file

@ -235,7 +235,23 @@ define(["loading", "appRouter", "layoutManager", "connectionManager", "cardBuild
var name = itemHelper.getDisplayName(item, {
includeParentInfo: !1
});
html && !parentNameLast ? html += '<h3 class="itemName" style="margin: .25em 0 .5em;">' + name + "</h3>" : html = parentNameLast ? '<h1 class="itemName" style="margin: .1em 0 .25em;">' + name + "</h1>" + html : '<h1 class="itemName" style="margin: .1em 0 .5em;">' + name + "</h1>" + html, container.innerHTML = html, html.length ? container.classList.remove("hide") : container.classList.add("hide")
if (html && !parentNameLast) {
html += '<h3 class="itemName" style="margin: .25em 0 .5em;">' + name + '</h3>';
} else {
if (parentNameLast) {
html = '<h1 class="itemName" style="margin: .1em 0 .25em;">' + name + "</h1>" + html;
} else {
html = '<h1 class="itemName" style="margin: .1em 0 .5em;">' + name + "</h1>" + html;
}
}
if (item.OriginalTitle) {
html += '<h3 class="itemName" style="margin: .25em 0 .5em;">' + item.OriginalTitle + '</h3>';
}
container.innerHTML = html;
html.length ? container.classList.remove("hide") : container.classList.add("hide")
}
function setTrailerButtonVisibility(page, item) {

View file

@ -30,6 +30,10 @@
</div>
<div class="itemMiscInfo nativeName hide">
</div>
<div class="itemMiscInfo itemMiscInfo-primary" style="margin: .7em 0;font-size:92%;">
</div>