mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
ensured that comment interface HTML is semantic and is matched to the theme/default comment interface
This commit is contained in:
parent
8e433e4273
commit
8ae8a541f7
@ -12,31 +12,31 @@
|
|||||||
</p>
|
</p>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<div class="comment-text" id="<% if $isPreview %>comment-preview<% else %>$Permalink<% end_if %>">
|
<div class="comment-text well" id="<% if $isPreview %>comment-preview<% else %>$Permalink<% end_if %>">
|
||||||
<p>$EscapedComment</p>
|
<p>$EscapedComment</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if not $isPreview %>
|
<% if not $isPreview %>
|
||||||
<% if $ApproveLink || $SpamLink || $HamLink || $DeleteLink || $RepliesEnabled %>
|
<% if $ApproveLink || $SpamLink || $HamLink || $DeleteLink || $RepliesEnabled %>
|
||||||
<ul class="action-links">
|
<div class="comment-action-links">
|
||||||
|
<div class="comment-moderation-options">
|
||||||
<% if $ApproveLink %>
|
<% if $ApproveLink %>
|
||||||
<li><a href="$ApproveLink.ATT" class="approve"><% _t('CommentsInterface_singlecomment_ss.APPROVE', 'approve this comment') %></a></li>
|
<a href="$ApproveLink.ATT" class="approve"><% _t('CommentsInterface_singlecomment_ss.APPROVE', 'approve it') %></a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% if $SpamLink %>
|
<% if $SpamLink %>
|
||||||
<li><a href="$SpamLink.ATT" class="spam"><% _t('CommentsInterface_singlecomment_ss.ISSPAM','this comment is spam') %></a></li>
|
<a href="$SpamLink.ATT" class="spam"><% _t('CommentsInterface_singlecomment_ss.ISSPAM','spam it') %></a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% if $HamLink %>
|
<% if $HamLink %>
|
||||||
<li><a href="$HamLink.ATT" class="ham"><% _t('CommentsInterface_singlecomment_ss.ISNTSPAM','this comment is not spam') %></a></li>
|
<a href="$HamLink.ATT" class="ham"><% _t('CommentsInterface_singlecomment_ss.ISNTSPAM','not spam') %></a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% if $DeleteLink %>
|
<% if $DeleteLink %>
|
||||||
<li><a href="$DeleteLink.ATT" class="delete"><% _t('CommentsInterface_singlecomment_ss.REMCOM','remove this comment') %></a></li>
|
<a href="$DeleteLink.ATT" class="delete"><% _t('CommentsInterface_singlecomment_ss.REMCOM','reject it') %></a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
</div>
|
||||||
<% if $RepliesEnabled %>
|
<% if $RepliesEnabled %>
|
||||||
<li class="comment-reply-action">
|
|
||||||
<a class="comment-reply-link" href="#{$ReplyForm.FormName}">Reply to $AuthorName.XML</a>
|
<a class="comment-reply-link" href="#{$ReplyForm.FormName}">Reply to $AuthorName.XML</a>
|
||||||
</li>
|
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</ul>
|
</div>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% include CommentReplies %>
|
<% include CommentReplies %>
|
||||||
|
Loading…
Reference in New Issue
Block a user