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