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.
23 lines
836 B
23 lines
836 B
% my $comments = stash('comments') || []; |
|
<div id="cmtd_main"> |
|
<hr> |
|
<%= tag 'h4' => l('Comments') . ':' %> |
|
% if (@{ $comments }) { |
|
% foreach my $cm (@{ $comments }) { |
|
<div class="cmtd_comment"> |
|
<div class="cmtd_head"> |
|
<%= 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} %>, |
|
<%= link_to l('Reply') => '#', class => 'c_add', 'data-cid' => $cm->{seq} %> |
|
</div> |
|
<%= tag 'div' => (class => 'cmtd_text') => $cm->{text} %> |
|
</div> |
|
% } |
|
<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>
|
|
|