mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
159 lines
8.4 KiB
HTML
159 lines
8.4 KiB
HTML
<%doc>
|
|
USAGE DOCUMENTATION :: PLEASE LEAVE THIS AT THE TOP OF THIS FILE
|
|
|
|
For Mako templating syntax documentation please visit: http://docs.makotemplates.org/en/latest/
|
|
|
|
Filename: info_children_list.html
|
|
Version: 0.1
|
|
Variable names: data [list]
|
|
|
|
data :: Usable parameters
|
|
|
|
== Global keys ==
|
|
children_type Returns the type of children in the array.
|
|
children_count Returns the number of episodes in the array.
|
|
children_list Returns an array of episodes.
|
|
|
|
data['children_list'] :: Usable paramaters
|
|
|
|
== Global keys ==
|
|
rating_key Returns the unique identifier for the media item.
|
|
media_index Returns the episode number.
|
|
title Returns the name of the episode.
|
|
thumb Returns the location of the item's thumbnail. Use with pms_image_proxy.
|
|
parent_thumb Returns the location of the item's parent thumbnail. Use with pms_image_proxy.
|
|
|
|
DOCUMENTATION :: END
|
|
</%doc>
|
|
|
|
% if data != None:
|
|
<%
|
|
from plexpy.helpers import page
|
|
%>
|
|
% if data['children_count'] > 0:
|
|
<div class="item-children-wrapper">
|
|
<ul class="item-children-instance list-unstyled">
|
|
% for child in data['children_list']:
|
|
% if child['rating_key']:
|
|
% if data['children_type'] == 'track':
|
|
<li class="item-children-list-item">
|
|
% else:
|
|
<li>
|
|
% endif
|
|
% if data['children_type'] == 'movie':
|
|
<a href="${page('info', child['rating_key'])}" title="${child['title']}">
|
|
<div class="item-children-poster">
|
|
<div class="item-children-poster-face poster-item" style="background-image: url(${page('pms_image_proxy', child['thumb'], child['rating_key'], 300, 450, fallback='poster')});"></div>
|
|
% if _session['user_group'] == 'admin':
|
|
<span class="overlay-refresh-image" title="Refresh image"><i class="fa fa-refresh refresh_pms_image"></i></span>
|
|
% endif
|
|
</div>
|
|
</a>
|
|
<div class="item-children-instance-text-wrapper poster-item">
|
|
<h3>
|
|
<a href="${page('info', child['rating_key'])}" title="${child['title']}">${child['title']}</a>
|
|
</h3>
|
|
<h3 class="text-muted">${child['year']}</h3>
|
|
</div>
|
|
% elif data['children_type'] == 'show':
|
|
<a href="${page('info', child['rating_key'])}" title="${child['title']}">
|
|
<div class="item-children-poster">
|
|
<div class="item-children-poster-face poster-item" style="background-image: url(${page('pms_image_proxy', child['thumb'], child['rating_key'], 300, 450, fallback='poster')});"></div>
|
|
% if _session['user_group'] == 'admin':
|
|
<span class="overlay-refresh-image" title="Refresh image"><i class="fa fa-refresh refresh_pms_image"></i></span>
|
|
% endif
|
|
</div>
|
|
</a>
|
|
<div class="item-children-instance-text-wrapper poster-item">
|
|
<h3>
|
|
<a href="${page('info', child['rating_key'])}" title="${child['title']}">${child['title']}</a>
|
|
</h3>
|
|
</div>
|
|
% elif data['children_type'] == 'season':
|
|
<a href="${page('info', child['rating_key'])}" title="Season ${child['media_index']}">
|
|
<div class="item-children-poster">
|
|
% if child['thumb']:
|
|
<div class="item-children-poster-face poster-item" style="background-image: url(${page('pms_image_proxy', child['thumb'], child['rating_key'], 300, 450, fallback='poster')});">
|
|
% else:
|
|
<div class="item-children-poster-face poster-item" style="background-image: url(${page('pms_image_proxy', child['parent_thumb'], child['parent_rating_key'], 300, 450, fallback='poster')});">
|
|
% endif
|
|
<div class="item-children-card-overlay">
|
|
<div class="item-children-overlay-text">
|
|
Season ${child['media_index']}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
% if _session['user_group'] == 'admin':
|
|
<span class="overlay-refresh-image" title="Refresh image"><i class="fa fa-refresh refresh_pms_image"></i></span>
|
|
% endif
|
|
</div>
|
|
</a>
|
|
% elif data['children_type'] == 'episode':
|
|
<a href="${page('info', child['rating_key'])}" title="Episode ${child['media_index']}">
|
|
<div class="item-children-poster">
|
|
<div class="item-children-poster-face episode-item" style="background-image: url(${page('pms_image_proxy', child['thumb'], child['rating_key'], 500, 280, fallback='art')});">
|
|
<div class="item-children-card-overlay">
|
|
<div class="item-children-overlay-text">
|
|
Episode ${child['media_index'] or child['originally_available_at']}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
% if _session['user_group'] == 'admin':
|
|
<span class="overlay-refresh-image" title="Refresh image"><i class="fa fa-refresh refresh_pms_image"></i></span>
|
|
% endif
|
|
</div>
|
|
</a>
|
|
<div class="item-children-instance-text-wrapper episode-item">
|
|
<h3>
|
|
<a href="${page('info', child['rating_key'])}" title="${child['title']}">${child['title']}</a>
|
|
</h3>
|
|
</div>
|
|
% elif data['children_type'] == 'album':
|
|
<a href="${page('info', child['rating_key'])}" title="${child['title']}">
|
|
<div class="item-children-poster">
|
|
<div class="item-children-poster-face cover-item" style="background-image: url(${page('pms_image_proxy', child['thumb'], child['rating_key'], 300, 300, fallback='cover')});"></div>
|
|
% if _session['user_group'] == 'admin':
|
|
<span class="overlay-refresh-image" title="Refresh image"><i class="fa fa-refresh refresh_pms_image"></i></span>
|
|
% endif
|
|
</div>
|
|
</a>
|
|
<div class="item-children-instance-text-wrapper cover-item">
|
|
<h3>
|
|
<a href="${page('info', child['rating_key'])}" title="${child['title']}">${child['title']}</a>
|
|
</h3>
|
|
</div>
|
|
% elif data['children_type'] == 'track':
|
|
% if loop.index % 2 == 0:
|
|
<div class="item-children-list-item-even">
|
|
<span class="item-children-list-item-index"> ${child['media_index']}</span>
|
|
<span class="item-children-list-item-title"><a href="${page('info', child['rating_key'])}" title="${child['title']}">${child['title']}</a>
|
|
% if child['original_title']:
|
|
<span class="text-muted"> - ${child['original_title']}</span>
|
|
% endif
|
|
</span>
|
|
<span class="item-children-list-item-duration" id="item-children-list-item-duration-${loop.index + 1}">
|
|
<script>$('#item-children-list-item-duration-${loop.index + 1}').text(moment.utc(${child['duration']}).format("m:ss"));</script>
|
|
</span>
|
|
</div>
|
|
% else:
|
|
<div class="item-children-list-item-odd">
|
|
<span class="item-children-list-item-index"> ${child['media_index']}</span>
|
|
<span class="item-children-list-item-title"><a href="${page('info', child['rating_key'])}" title="${child['title']}">${child['title']}</a>
|
|
% if child['original_title']:
|
|
<span class="text-muted"> - ${child['original_title']}</span>
|
|
% endif
|
|
</span>
|
|
<span class="item-children-list-item-duration" id="item-children-list-item-duration-${loop.index + 1}">
|
|
<script>$('#item-children-list-item-duration-${loop.index + 1}').text(moment.utc(${child['duration']}).format("m:ss"));</script>
|
|
</span>
|
|
</div>
|
|
% endif
|
|
% endif
|
|
</li>
|
|
% endif
|
|
% endfor
|
|
</ul>
|
|
</div>
|
|
% endif
|
|
% endif
|
|
|