Skip to content

Commit

Permalink
use "content" instead of "content_for"
Browse files Browse the repository at this point in the history
because content_for ammends and we don't want that feature.
  • Loading branch information
afresh1 committed Oct 14, 2012
1 parent 7c2775f commit 00a6502
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions OpenBSDtracker
Expand Up @@ -138,15 +138,15 @@ $(document).ready(function() {
% my ($info) = @_;
% my $total_size = 0;
% if ($info->{files}) {
% content_for file_list => begin
% content file_list => begin
<ul>
% foreach my $file ( @{ $info->{files} }) {
% $total_size += $file->{length};
%= $detail_line->( human_number($file->{length}), join('/', @{ $file->{path} }));
% }
</ul>
% end
%= $detail_line->('Files', content_for('file_list') );
%= $detail_line->('Files', content('file_list') );
% } else {
% $total_size = $info->{length};
% }
Expand All @@ -155,18 +155,19 @@ $(document).ready(function() {
% my $url_list = begin
% my ($list) = @_;
% if ($list) {
% content_for url_list => begin
% $list = [$list] unless ref $list eq 'ARRAY';
% content url_list => begin
% if (@{ $list } == 1) {
%= link_to $list->[0] => $list->[0];
% } else {
<ul>
<ul>
% foreach (@{ $list }) {
<li><%= link_to $_ => $_ %></li>
% }
</ul>
</ul>
% }
% end
%= $detail_line->('Web Seeds', content_for('url_list'));
%= $detail_line->('Web Seeds', content('url_list'));
% }
% end
<ul>
Expand Down

0 comments on commit 00a6502

Please sign in to comment.