plexpy/data/interfaces/default/user_watch_time_stats.html
Tim 9364b06c99 Add platform stats to user page
Re-add user gravatars
Some error catching
Some code clean-up
2015-06-21 17:19:19 +02:00

26 lines
No EOL
844 B
HTML

% if watch_stats != None:
<ul>
% for a in watch_stats:
<div class='user-overview-stats-instance'>
<li>
<div class='user-overview-stats-instance-text'>
% if a['query_days'] == 0:
<h4>All Time</h4>
% elif a['query_days'] == 1:
<h4>Last 24 hours</h4>
% else:
<h4>Last ${a['query_days']} days</h4>
% endif
<h3>${a['total_plays']}</h3><p>plays</p>
<span id="total-time-${a['query_days']}"></span>
</div>
</li>
</div>
<script>
$('#total-time-${a['query_days']}').html(humanTime(${a['total_time']}));
</script>
% endfor
</ul>
% else:
<div class="muted">There was an error loading your PlexWatch data. Please check your <a href="config">settings</a>.</div><br>
% endif