projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb13000
)
don't display ¶ after last item
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 20 May 2010 18:51:18 +0000
(20:51 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 20 May 2010 18:51:18 +0000
(20:51 +0200)
templates/data/items/table.html.ep
patch
|
blob
|
history
diff --git
a/templates/data/items/table.html.ep
b/templates/data/items/table.html.ep
index
2577868
..
4954137
100644
(file)
--- a/
templates/data/items/table.html.ep
+++ b/
templates/data/items/table.html.ep
@@
-28,9
+28,10
@@
filter
% foreach my $col ( @$columns ) {
<td<%= $numeric->{$col} ? ' class=numeric' : '' %>>
% if ( ref $row->{$col} eq 'ARRAY' ) {
-% foreach ( @{ $row->{$col} } ) {
-<%= $_ %>
-% if ( $#{ $row->{$col} } ) {
+% my $last = $#{ $row->{$col} };
+% foreach ( 0 .. $last ) {
+<%= $row->{$col}->[$_] %>
+% if ( $_ < $last ) {
<span class=d>¶</span>
% }
% }
@@
-40,8
+41,8
@@
filter
<%= $row->{$col} %>
% }
</td>
-% }
+% }
# columns
</tr>
-% }
+% }
# sorted
</table>