Commit c4867b6d authored by Jonas Haraldsson's avatar Jonas Haraldsson

library clean-up

parent d1083c2a
......@@ -116,12 +116,16 @@ body{ font:12px/18px sans-serif; }
visibility:hidden;
}
.inline {
display:inline;
}
.librarytable {
width:100%;
/*border:1px solid black;*/
}
table.librarytable td {
.librarytable td {
/*border-left:1px dotted black;*/
padding:2px;
}
......@@ -134,6 +138,10 @@ table.librarytable td {
width:24px;
}
.librarytable .title {
text-align:left;
}
.librarytable .count {
width:50px;
text-align:center;
......@@ -184,7 +192,7 @@ table.librarytable td {
}
.librarytable tbody tr:hover td {
/*background-color:#ddd;*/
background-color:#ddd;
}
.librarytable tbody tr:hover .buttons form {
......
......@@ -24,12 +24,12 @@
{if $fimage}
<th></th>
{/if}
<th><a href="{$url_sort_name}">Album</a></th>
<th class="title">Title</th>
{if $fbutton}
<th class="buttons"></th>
{/if}
{if $fcount}
<th class="count"><a href="{$url_sort_count}">Plays</a></th>
<th class="count">Plays</th>
{/if}
</thead>
{/if}
......
......@@ -23,7 +23,7 @@
{if $fimage}
<th></th>
{/if}
<th><a href="{$page->urls['sort_name']}">Artist</a></th>
<th class="title"><a href="{$page->urls['sort_name']}">Title</a></th>
{if $ftag}
<th></th>
{/if}
......
......@@ -17,9 +17,9 @@
{if $fimage}
<th></th>
{/if}
<th><a href="{$url_sort_name}">Tag</a></th>
<th class="title">Tag</th>
{if $fcount}
<th class="count"><a href="{$url_sort_count}">Count</a></th>
<th class="count">Count</th>
{/if}
</thead>
{/if}
......
......@@ -27,7 +27,7 @@
{if $fimage}
<th></th>
{/if}
<th><a href="{$url_sort_name}">Track</a></th>
<th class="title">Title</th>
{if $flove}
<th class="icon"></th>
{/if}
......@@ -38,7 +38,7 @@
<th></th>
{/if}
{if $fcount}
<th class="count"><a href="{$url_sort_count}">Plays</a></th>
<th class="count">Plays</th>
{/if}
{if $ftime}
<th class="time">Time</th>
......
......@@ -13,7 +13,8 @@
</div>
<br />
{if $page->tracks}
{include file='tracklist.tpl' class=#librarytable# items=$page->tracks thead=true fstream=true flove=true ftag=true fcount=true}
<h4>Tracks on this album</h4>
{include file='tracklist.tpl' class=#librarytable# items=$page->tracks fstream=true flove=true ftag=true fcount=true}
{/if}
{include file='footer.tpl'}
......@@ -15,10 +15,12 @@
<br />
{if $page->albums}
<h4>Albums by this artist</h4>
{include file='albumlist.tpl' class=#librarytable# items=$page->albums thead=true fimage=true fcount=true fstream=true}
{/if}
{if $page->tracks}
<h4>Tracks by this artist</h4>
{include file='tracklist.tpl' class=#librarytable# items=$page->tracks thead=true fstream=true flove=true ftag=true fcount=true}
{/if}
......
{include file='header.tpl' subheader='user-header.tpl'}
<h4 class="inline">Library</h4> {include file='submenu.tpl' submenu=$page->menu}
<br />
<br />
{if count($page->banned_tracks) == 50}
<div class="center">
<a class="pull-left" {if $page->page <= 1}style="visibility:hidden;"{/if} href="{$page->pageurls['page_prev']}">prev</a> <span>page {$page->page}</span><a class="pull-right" href="{$page->pageurls['page_next']}">next</a>
</div>
{/if}
{include file='paginate.tpl'}
{if $page->banned_tracks}
{include file='tracklist.tpl' class=#librarytable# items=$page->banned_tracks flove=true fartist=true ftime=true fbutton=true type='banned'}
{include file='tracklist.tpl' class=#librarytable# items=$page->banned_tracks thead=true flove=true fartist=true ftime=true fbutton=true type='banned'}
{/if}
{include file='paginate.tpl'}
{include file='footer.tpl'}
{include file='header.tpl' subheader='user-header.tpl'}
<h4 class="inline">Library</h4> {include file='submenu.tpl' submenu=$page->menu}
<br />
<br />
{if count($page->loved_tracks) == 50}
<div class="center">
<a class="pull-left" {if $page->page <= 1}style="visibility:hidden;"{/if} href="{$page->pageurls['page_prev']}">prev</a> <span>page {$page->page}</span><a class="pull-right" href="{$page->pageurls['page_next']}">next</a>
</div>
{/if}
{include file='paginate.tpl'}
{if $page->loved_tracks}
{include file='tracklist.tpl' class=#librarytable# items=$page->loved_tracks fstream=true flove=true fartist=true ftime=true fbutton=true type='loved'}
{include file='tracklist.tpl' class=#librarytable# items=$page->loved_tracks thead=true fstream=true flove=true fartist=true ftime=true fbutton=true type='loved'}
{/if}
{include file='paginate.tpl'}
{include file='footer.tpl'}
......@@ -5,11 +5,10 @@
<br />
{include file='paginate.tpl'}
<h4>Artists</h4>
{if $page->artists}
{include file='artistlist.tpl' class=#librarytable# items=$page->artists thead=true fstream=true fimage=true fcount=true}
{/if}
{include file='paginate.tpl'}
{if $page->streamable}
......@@ -18,4 +17,4 @@
<a href="{$page->urls['streamable']}">Streamable artists</a>
{/if}
{include file='footer.tpl' nosidebar=true}
{include file='footer.tpl'}
......@@ -3,12 +3,11 @@
<h4 class="inline">Library</h4> {include file='submenu.tpl' submenu=$page->menu}
<br />
<br />
<div class="center">
<a class="pull-left" {if $page->page <= 1}style="visibility:hidden;"{/if} href="{$page->pageurls['page_prev']}">prev</a> <span>page {$page->page}</span><a class="pull-right" href="{$page->pageurls['page_next']}">next</a>
</div>
{include file='paginate.tpl'}
{if $page->scrobbles}
{include file='tracklist.tpl' class=#librarytable# items=$page->scrobbles fartist=true ftag=true ftime=true fbutton=true flove=true fstream=true type='scrobble'}
{include file='tracklist.tpl' class=#librarytable# items=$page->scrobbles thead=true fartist=true ftag=true ftime=true fbutton=true flove=true fstream=true type='scrobble'}
{/if}
{include file='paginate.tpl'}
{include file='footer.tpl'}
......@@ -32,7 +32,7 @@
{else}
{if $page->tags}
{include file='taglist.tpl' class=#librarytable# items=$page->tags fcount=true}
{include file='taglist.tpl' class=#librarytable# items=$page->tags thead=true fcount=true}
{/if}
{/if}
......
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