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.
 
 
 
 

18 lines
506 B

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