You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
495 B

% my $comments = stash('comments') || [];
% my $num = 1;
<h3>Комментарии:</h3>
% foreach my $comment (@{ $comments }) {
<div class="comment">
<div class="cinfo">
<span class="num">#&nbsp;<%= $num++ %></span>&nbsp;
<span class="user"><%= $comment->{user} %></span>&nbsp;
<span class="date"><%= from_unixtime $comment->{time} %></span>&nbsp;
</div>
<div class="ctext">
%== markdown $comment->{text}
</div>
</div>
% }
<p><a href="#" id="cadd"><%= l('Add') %></a></p>