silverstrap 

silverstrap Git Source Tree

Root/templates/CommentsInterface_singlecomment.ss

1<% if not $isPreview %>
2<% if $Gravatar %>
3<div class="media-left">
4<img class="media-object" src="$Gravatar.ATT" alt="$Name.ATT">
5</div>
6<% end_if %>
7<div class="media-body">
8<h4 class="media-heading"><% if $URL %>
9<a class="author" href="$URL.URL" rel="nofollow">$AuthorName.XML</a><% else %>
10<span class="author">$AuthorName.XML</span><% end_if %>
11<span class="date">$Created.Nice ($Created.Ago)</span>
12</h4>
13<% end_if %>
14
15<div class="ss-comment" id="<% if $isPreview %>comment-preview<% else %>$Permalink.ATT<% end_if %>">
16<p>$EscapedComment</p>
17</div>
18
19<% if not $isPreview %>
20<% if $ApproveLink || $SpamLink || $HamLink || $DeleteLink || $RepliesEnabled %>
21<div class="comment-action-links">
22<div class="comment-moderation-options">
23<% if $ApproveLink %>
24<a href="$ApproveLink.ATT" class="btn btn-sm btn-success"><% _t('CommentsInterface_singlecomment_ss.APPROVE', 'approve it') %></a>
25<% end_if %>
26<% if $SpamLink %>
27<a href="$SpamLink.ATT" class="btn btn-sm btn-danger"><% _t('CommentsInterface_singlecomment_ss.ISSPAM','spam it') %></a>
28<% end_if %>
29<% if $HamLink %>
30<a href="$HamLink.ATT" class="btn btn-sm btn-primary"><% _t('CommentsInterface_singlecomment_ss.ISNTSPAM','not spam') %></a>
31<% end_if %>
32<% if $DeleteLink %>
33<a href="$DeleteLink.ATT" class="btn btn-sm btn-danger"><% _t('CommentsInterface_singlecomment_ss.REMCOM','reject it') %></a>
34<% end_if %>
35</div>
36<% if $RepliesEnabled %>
37<a class="btn btn-primary" href="#{$ReplyForm.FormName}">Reply</a>
38<% end_if %>
39</div>
40<% end_if %>
41
42<% include CommentReplies %>
43</div>
44<% end_if %>

Archive Download this file