mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
84 lines
No EOL
3.4 KiB
HTML
84 lines
No EOL
3.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: library_stats.html
|
|
Version: 0.1
|
|
Variable names: data [array]
|
|
|
|
data[array_index] :: Usable parameters
|
|
|
|
data['type'] Returns the type of the library. Either 'movie', 'show', 'photo', or 'artist'.
|
|
data['rows'] Returns an array containing stat data
|
|
|
|
data[array_index]['rows'] :: Usable parameters
|
|
|
|
title Returns the title of the library.
|
|
thumb Returns the thumb of the library.
|
|
count Returns the number of items in the library.
|
|
count_type Returns the sorting type for the library
|
|
|
|
== Only if 'type' is 'show'
|
|
episode_count Return the number of episodes in the library.
|
|
episode_count_type Return the sorting type for the episodes.
|
|
|
|
== Only if 'type' is 'artist'
|
|
album_count Return the number of episodes in the library.
|
|
album_count_type Return the sorting type for the episodes.
|
|
|
|
DOCUMENTATION :: END
|
|
</%doc>
|
|
|
|
% if data:
|
|
<ul class="list-unstyled">
|
|
% for library in data:
|
|
<div class="home-platforms-instance">
|
|
<li>
|
|
<div class="home-platforms-instance-info">
|
|
<div class="home-platforms-instance-name">
|
|
% if library['type'] != 'photo':
|
|
<h4>
|
|
<a href="info?item_id=${library['type']}" title="${library['rows']['title']}">${library['rows']['title']}</a>
|
|
</h4>
|
|
% else:
|
|
<h4>${library['rows']['title']}</h4>
|
|
% endif
|
|
</div>
|
|
<div class="home-platforms-instance-playcount">
|
|
<h5>${library['rows']['count_type']}</h5>
|
|
<h3>${library['rows']['count']}</h3>
|
|
<p> items</p>
|
|
</div>
|
|
% if library['type'] == 'show':
|
|
<div class="home-platforms-instance-playcount" style="padding-left: 10px;">
|
|
<h5>${library['rows']['episode_count_type']}</h5>
|
|
<h3>${library['rows']['episode_count']}</h3>
|
|
<p> items</p>
|
|
</div>
|
|
% endif
|
|
% if library['type'] == 'artist':
|
|
<div class="home-platforms-instance-playcount" style="padding-left: 10px;">
|
|
<h5>${library['rows']['album_count_type']}</h5>
|
|
<h3>${library['rows']['album_count']}</h3>
|
|
<p> items</p>
|
|
</div>
|
|
% endif
|
|
</div>
|
|
% if library['rows']['thumb']:
|
|
<div class="home-platforms-instance-poster">
|
|
<div class="home-platforms-library-thumb" style="background-image: url(pms_image_proxy?img=${library['rows']['thumb']}&width=300&height=300&fallback=poster);"></div>
|
|
</div>
|
|
% else:
|
|
<div class="home-platforms-instance-poster">
|
|
<div class="home-platforms-library-thumb" style="background-image: url(interfaces/default/images/poster.png);"></div>
|
|
</div>
|
|
% endif
|
|
</li>
|
|
</div>
|
|
% endfor
|
|
</ul>
|
|
% else:
|
|
<div class="text-muted">Unable to retrieve data from server. Please check your <a href="settings">settings</a>.
|
|
</div><br>
|
|
% endif |