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.

24 lines
836 B

% my $comments = stash('comments') || [];
<div id="cmtd_main">
7 years ago
<hr>
<%= tag 'h4' => l('Comments') . ':' %>
% if (@{ $comments }) {
% foreach my $cm (@{ $comments }) {
<div class="cmtd_comment">
<div class="cmtd_head">
7 years ago
<%= tag a => (class => 'cmtd_num', name => "cm$cm->{seq}") => "# $cm->{seq}" %>,
<%= tag span => (class => 'cmtd_name') => $cm->{name} %>,
<%= tag span => (class => 'cmtd_date') => $cm->{date} %>,
7 years ago
<%= link_to l('Reply') => '#', class => 'c_add', 'data-cid' => $cm->{seq} %>
</div>
<%= tag 'div' => (class => 'cmtd_text') => $cm->{text} %>
</div>
7 years ago
% }
<span id="comment_add"><%= link_to l('Add') => '#', class => 'c_add' %></span>
% } else {
<p id="no_comments_notice">
<%= l('No comments') %>. <%= link_to l('Add') => '#', class => 'c_add' %>?
</p>
% }
</div>