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

Commit c0fae0b8 authored by fauno's avatar fauno

now playing and recent tracks view

parent eec78fb8
......@@ -184,13 +184,25 @@ dl.now-playing * {
display: inline
}
*/
dl.now-playing dt {
dl.now-playing dt, dl.recent-tracks dt {
font-size: 1em;
margin-top: .3em
}
dl.now-playing dd {
font-size: .8em;
color: #666
color: #666;
display: inline;
margin: 0
}
dl.now-playing dd.track-name {
display:block
}
dl.recent-tracks dd span.username {
font-size: .7em
}
/* dl.recent-tracks dd.track-name:before {
content: '| ';
}*/
dl.gobbles {
}
......@@ -214,3 +226,8 @@ dl.gobbles {
h3 {
clear: left;
}
.clear {
clear: both;
}
......@@ -6,41 +6,36 @@ musical tastes with other people.</p>
<h3>Now playing</h3>
<ul id="nowplaying" class="listcloud">
<dl class='now-playing'>
{section name=np loop=$nowplaying}
<li>
<dl>
<dt><a href="{$nowplaying[np].artisturl}">
{$nowplaying[np].artist|stripslashes|htmlspecialchars}</a></dt>
<dd>
{if $nowplaying[np].mbid <> ""}
<a href="http://musicbrainz.org/track/{$nowplaying[np].mbid}.html">
{/if}
{$nowplaying[np].track|stripslashes|htmlspecialchars}
{if $nowplaying[np].mbid <> ""}
</a>
{/if}
</dd>
<dd><a href="{$nowplaying[np].userurl}">{$nowplaying[np].username|stripslashes|htmlspecialchars}</a></dd>
<dd>{$nowplaying[np].clientstr}</dd>
<dt class='artist-name'>
<a href='{$nowplaying[np].artisturl}'>{$nowplaying[np].artist|stripslashes|htmlspecialchars}</a>
</dt>
<dd class='track-name'>
{if $nowplaying[np].mbid <> ''}
<a href='http://musicbrainz.org/track/{$nowplaying[np].mbid}.html'>
{/if}
{$nowplaying[np].track|stripslashes|htmlspecialchars}
{if $nowplaying[np].mbid <> ''}
</a>
{/if}
</dd>
<dd class='username'><a href='{$nowplaying[np].userurl}'>{$nowplaying[np].username|stripslashes|htmlspecialchars}</a></dd>
<dd>using <span class='gobbler'>{$nowplaying[np].clientstr}</span></dd>
</dl>
</li>
{/section}
</ul>
</dl>
<h3>What's hot? Recently gobbled.</h3>
<ul id="recenttracks" class="listcloud">
<dl class='recent-tracks'>
{section name=recent loop=$recenttracks}
<li>
<dl>
<dt><a href="{$recenttracks[recent].artisturl}">
{$recenttracks[recent].artist|stripslashes|htmlspecialchars}</a></dt>
<dd>{$recenttracks[recent].track|stripslashes|htmlspecialchars}</dd>
<dd><a href="{$recenttracks[recent].userurl}">{$recenttracks[recent].username|stripslashes|htmlspecialchars}</a></dd>
</dl>
</li>
<dd class='artist-name'><a href='{$recenttracks[recent].artisturl}'>
{$recenttracks[recent].artist|stripslashes|htmlspecialchars}</a>:
<span class='track-name'>{$recenttracks[recent].track|stripslashes|htmlspecialchars}</span> &mdash;
<span class='username'><a href='{$recenttracks[recent].userurl}'>{$recenttracks[recent].username|stripslashes|htmlspecialchars}</a></span></dd>
{/section}
</ul>
<div class="cleaner">&nbsp;</div>
</dl>
<div class='cleaner'>&nbsp;</div>
{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