Skip to content

Instantly share code, notes, and snippets.

@navap
Created April 13, 2010 00:37
Show Gist options
  • Save navap/364175 to your computer and use it in GitHub Desktop.
Save navap/364175 to your computer and use it in GitHub Desktop.
sub release_group : Path('release-group')
{
my ($self, $c) = @_;
$c->stash(
count => {
type => {
album => {
name1 => 'Album',
size1 => '327178',
},
single => {
name1 => 'Single',
size1 => '80611',
},
compilation => {
name1 => 'Compilation',
size1 => '131669',
},
soundtrack => {
name1 => 'Soundtrack',
size1 => '14446',
},
live => {
name1 => 'Live',
size1 => '34986',
},
},
},
template => 'statistics/release_group.tt'
);
}
<table>
<tr>
<th>[%- l('Type') -%]</th>
<th>[%- l('Number') -%]</th>
</tr>
[% FOR type IN count.type %]
<tr>
<th>[%- type.name1 -%]</th>
<td>[%- type.size1 -%]</td>
</tr>
[% END %]
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment