We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 1564b4b1 authored by idflood's avatar idflood

minnor template changes to stats.tpl

parent 9bceb92a
{include file='header.tpl'}
<h2 property="dc:title">{$user|escape:'html':'UTF-8'}'{if $user|substr:-1 != 's'}s{/if} profile</h2>
<h2 property="dc:title">{$user|escape:'html':'UTF-8'}'{if $user|substr:-1 != 's'}s{/if} statistics</h2>
<div about="{$id|escape:'html':'UTF-8'}" typeof="foaf:Agent" class="user vcard">
<div class="avatar" rel="foaf:depiction">
......@@ -28,17 +28,12 @@
<a href="{$homepage|escape:'html':'UTF-8'}" rel="me foaf:homepage" class="url">{$homepage|escape:'html':'UTF-8'}</a>
</dd>
{/if}
<dd rel="foaf:based_near">
<span{if $location_uri} about="{$location_uri|escape:'html':'UTF-8'}"{/if} class="label" property="rdfs:comment">{$location|escape:'html':'UTF-8'}</span>
</dd>
<dd class="note" property="bio:olb">{$bio|escape:'html':'UTF-8'}</dd>
</dl>
<hr style="border: 1px solid transparent; clear: both;" rel="foaf:page" rev="foaf:primaryTopic" resource="" />
</div>
<h3>{$user}'{if $user|substr:-1 != 's'}s{/if} most played artists</h3>
<h3 id="stats_by_artist">{$user}'{if $user|substr:-1 != 's'}s{/if} most played artists</h3>
<table class="stats_artists" about="{$id}">
{section name=i loop=$user_playstats}
<tr><td class="counts">{$user_playstats[i].count}</td><td class="bar" style="width: {$stat_barwidth}px"><div style="width:{$user_playstats[i].size}px" class="artist"></div></td><td><a
......@@ -47,7 +42,7 @@
{/section}
</table>
<h3>{$user}'{if $user|substr:-1 != 's'}s{/if} plays by day</h3>
<h3 id="stats_by_day">{$user}'{if $user|substr:-1 != 's'}s{/if} scrobbles by day</h3>
<table class="stats_artists" about="{$id}">
{section name=i loop=$user_daystats}
<tr><td class="counts">{$user_daystats[i].count}</td><td class="bar" style="width: {$stat_barwidth}px"><div style="width:{$user_daystats[i].size}px" class="artist"></div></td><td class="date">{$user_daystats[i].date}</td></tr>
......@@ -58,6 +53,10 @@
</div></div><div class="yui-u" id="sidebar"><div style="padding: 10px;">
<h3>{$user}'{if $user|substr:-1 != 's'}s{/if} statistics</h3>
<ul>
<li><a href="#stats_by_artist">Most played artists</a></li>
<li><a href="#stats_by_day">Scrobbles by day</a></li>
</ul>
<p><strong>More coming soon</strong></p>
{include file='footer.tpl'}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment