Alex 'AdUser' Z
9 years ago
4 changed files with 53 additions and 5 deletions
@ -0,0 +1,16 @@
|
||||
% my $comments = stash('comments') || []; |
||||
% my $num = 1; |
||||
<h3>Комментарии:</h3> |
||||
% foreach my $comment (@{ $comments }) { |
||||
<div class="comment"> |
||||
<div class="cinfo"> |
||||
<span class="num"># <%= $num++ %></span> |
||||
<span class="user"><%= $comment->{user} %></span> |
||||
<span class="date"><%= from_unixtime $comment->{time} %></span> |
||||
</div> |
||||
<div class="ctext"> |
||||
%== markdown $comment->{text} |
||||
</div> |
||||
</div> |
||||
% } |
||||
<p><a href="#" id="cadd"><%= l('Add') %></a></p> |
Loading…
Reference in new issue