Created
April 13, 2010 00:37
-
-
Save navap/364175 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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