mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
This commit is contained in:
commit
64938a04c1
3 changed files with 31 additions and 2 deletions
|
@ -141,6 +141,14 @@
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.itemTag {
|
||||||
|
display: inline-block;
|
||||||
|
background-color: #999;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 3px 5px;
|
||||||
|
font-size: 13px;
|
||||||
|
margin: 0 5px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@media all and (min-width: 750px) {
|
@media all and (min-width: 750px) {
|
||||||
|
|
|
@ -133,7 +133,7 @@
|
||||||
<p id="itemGenres"></p>
|
<p id="itemGenres"></p>
|
||||||
<p id="itemStudios"></p>
|
<p id="itemStudios"></p>
|
||||||
<p id="itemLinks"></p>
|
<p id="itemLinks"></p>
|
||||||
|
<p id="itemTags"></p>
|
||||||
<p id="criticRatingSummary" class="criticRatingSummary" style="display: none;">
|
<p id="criticRatingSummary" class="criticRatingSummary" style="display: none;">
|
||||||
<span class="criticRatingSummaryHeader">The bottom line</span>
|
<span class="criticRatingSummaryHeader">The bottom line</span>
|
||||||
<span id="criticRatingSummaryText"></span>
|
<span id="criticRatingSummaryText"></span>
|
||||||
|
|
|
@ -233,6 +233,27 @@
|
||||||
} else {
|
} else {
|
||||||
$('#criticRatingSummary', page).hide();
|
$('#criticRatingSummary', page).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
renderTags(page, item);
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderTags(page, item) {
|
||||||
|
|
||||||
|
if (item.Tags && item.Tags.length) {
|
||||||
|
|
||||||
|
var html = '';
|
||||||
|
|
||||||
|
for (var i = 0, length = item.Tags.length; i < length; i++) {
|
||||||
|
|
||||||
|
html += '<div class="itemTag">' + item.Tags[i] + '</div>';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#itemTags', page).show().html(html);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$('#itemTags', page).hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderChildren(page, item) {
|
function renderChildren(page, item) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue