Skip to content

Commit

Permalink
Added <thead> and <tbody> elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Feb 9, 2017
1 parent aa9ae7d commit b27cbfb
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 45 deletions.
20 changes: 12 additions & 8 deletions in/album.tt
Expand Up @@ -14,15 +14,19 @@
</tr>
</table>
<table class="table table-striped table-condensed table-hover table-bordered">
<tr>
<th>&nbsp;</th><th>Title</th><th>Artist</th>
</tr>
<thead>
<tr>
<th>&nbsp;</th><th>Title</th><th>Artist</th>
</tr>
</thead>
<tbody>
[% FOREACH track IN album.tracks -%]
<tr>
<td>[% track.number %]</td>
<td><a href="/[% track.song.filename %]">[% track.song.title %]</a></td>
<td><a href="/[% track.artist.filename %]">[% track.artist.name %]</a></td>
</tr>
<tr>
<td>[% track.number %]</td>
<td><a href="/[% track.song.filename %]">[% track.song.title %]</a></td>
<td><a href="/[% track.artist.filename %]">[% track.artist.name %]</a></td>
</tr>
[% END -%]
</tbody>
</table>
[% END %]
20 changes: 12 additions & 8 deletions in/albums.tt
Expand Up @@ -3,15 +3,19 @@
<p>A list of compilations released by
<a href="http://www.cookingvinyl.com/">Cooking Vinyl</a> records.</p>
<table class="table table-striped table-condensed table-hover table-bordered">
<tr>
<th>Catalogue</th><th>Year</th><th>Title</th>
</tr>
<thead>
<tr>
<th>Catalogue</th><th>Year</th><th>Title</th>
</tr>
</thead>
<tbody>
[% FOREACH album IN albums -%]
<tr>
<td>[% IF album.title %]<a href="/[% album.filename %]">[% END %][% album.cat %][% IF album.title %]</a>[% END %]</td>
<td>[% album.year %]</td>
<td>[% album.title %]</td>
</tr>
<tr>
<td>[% IF album.title %]<a href="/[% album.filename %]">[% END %][% album.cat %][% IF album.title %]</a>[% END %]</td>
<td>[% album.year %]</td>
<td>[% album.title %]</td>
</tr>
[% END %]
</tbody>
</table>
[% END %]
21 changes: 12 additions & 9 deletions in/artist.tt
Expand Up @@ -4,16 +4,19 @@
<p><a href="index.html">Return to list</a></p>

<table class="table table-striped table-condensed table-hover table-bordered">
<table class="table table-striped table-condensed table-hover table-bordered">
<tr>
<th>Song</th><th>Album</th><th>Cat</th>
</tr>
<thead>
<tr>
<th>Song</th><th>Album</th><th>Cat</th>
</tr>
</thead>
<tbody>
[% FOREACH track IN tracks -%]
<tr>
<td><a href="/[% track.song.filename %]">[% track.song.title %]</a></td>
<td><a href="/[% track.album.filename %]">[% track.album.title %]</a></td>
<td>[% track.album.cat %]</td>
</tr>
<tr>
<td><a href="/[% track.song.filename %]">[% track.song.title %]</a></td>
<td><a href="/[% track.album.filename %]">[% track.album.title %]</a></td>
<td>[% track.album.cat %]</td>
</tr>
[% END -%]
</tbody>
</table>
[% END %]
16 changes: 10 additions & 6 deletions in/artists.tt
Expand Up @@ -3,13 +3,17 @@
<p>A list of artists on compilations released by
<a href="http://www.cookingvinyl.com/">Cooking Vinyl</a> records.</p>
<table class="table table-striped table-condensed table-hover table-bordered">
<tr>
<th>Artist</th>
</tr>
<thead>
<tr>
<th>Artist</th>
</tr>
</thead>
<tbody>
[% FOREACH artist IN artists -%]
<tr>
<td><a href="/[% artist.filename %]">[% artist.name %]</a></td>
</tr>
<tr>
<td><a href="/[% artist.filename %]">[% artist.name %]</a></td>
</tr>
[% END %]
</tbody>
</table>
[% END %]
20 changes: 12 additions & 8 deletions in/song.tt
Expand Up @@ -5,15 +5,19 @@

<table class="table table-striped table-condensed table-hover table-bordered">
<table class="table table-striped table-condensed table-hover table-bordered">
<tr>
<th>Artist</th><th>Album</th><th>Cat</th>
</tr>
<thead>
<tr>
<th>Artist</th><th>Album</th><th>Cat</th>
</tr>
</thead>
[% FOREACH track IN tracks -%]
<tr>
<td><a href="/[% track.artist.filename %]">[% track.artist.name %]</a></td>
<td><a href="/[% track.album.filename %]">[% track.album.title %]</a></td>
<td>[% track.album.cat %]</td>
</tr>
<tbody>
<tr>
<td><a href="/[% track.artist.filename %]">[% track.artist.name %]</a></td>
<td><a href="/[% track.album.filename %]">[% track.album.title %]</a></td>
<td>[% track.album.cat %]</td>
</tr>
[% END -%]
</tbody>
</table>
[% END %]
16 changes: 10 additions & 6 deletions in/songs.tt
Expand Up @@ -3,13 +3,17 @@
<p>A list of songs on compilations released by
<a href="http://www.cookingvinyl.com/">Cooking Vinyl</a> records.</p>
<table class="table table-striped table-condensed table-hover table-bordered">
<tr>
<th>Song</th>
</tr>
<thead>
<tr>
<th>Song</th>
</tr>
</thead>
<tbody>
[% FOREACH song IN songs.sort('title') -%]
<tr>
<td><a href="/[% song.filename %]">[% song.title %]</a></td>
</tr>
<tr>
<td><a href="/[% song.filename %]">[% song.title %]</a></td>
</tr>
[% END %]
</tbody>
</table>
[% END %]

0 comments on commit b27cbfb

Please sign in to comment.