projects
/
MojoFacets.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
display first tabular data
[MojoFacets.git]
/
templates
/
data
/
table.html.ep
1
% layout 'default';
2
3
columns: <%= join(',',@$columns) %>
4
5
<table>
6
7
<tr>
8
% foreach my $n ( @$columns ) {
9
<th><%= $n %></th>
10
% }
11
</tr>
12
13
% foreach my $row ( @$sorted ) {
14
<tr>
15
% foreach my $col ( @$columns ) {
16
<td><%= ref $row->{$col} eq 'ARRAY' ? join(', ',@{ $row->{$col} }) : $row->{$col} %></td>
17
% }
18
</tr>
19
% }
20
21
</table>
22
23