mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 09:05:49 +00:00
ENHANCEMENT: Tidy up layout of comments to include Gravatar and threading depth
This commit is contained in:
parent
5128f51a59
commit
04b1b62b85
@ -1,18 +1,21 @@
|
||||
<div class="comment" id="<% if isPreview %>comment-preview<% else %>$Permalink<% end_if %>">
|
||||
<% if $Gravatar %><img class="gravatar" src="$Gravatar" alt="Gravatar for $Name" title="Gravatar for $Name" /><% end_if %>
|
||||
$EscapedComment
|
||||
</div>
|
||||
|
||||
<% if not isPreview %>
|
||||
<p class="info">
|
||||
<% if $URL %>
|
||||
<% _t('CommentsInterface_singlecomment_ss.PBY','Posted by') %> <a href="$URL.URL" rel="nofollow">$AuthorName.XML</a>, $Created.Nice ($Created.Ago)
|
||||
<div class="comment" data-comment-id="$ID" id="<% if isPreview %>comment-preview<% else %>$Permalink<% end_if %>">
|
||||
<% if MarkedAsDeleted %><% _t('DELETED_BY_ADMIN','This comment was deleted by an administrator') %><% else %>
|
||||
<div class="actualcomment">
|
||||
<% if $URL %>
|
||||
<h4><% _t('CommentsInterface_singlecomment_ss.PBY','Posted by') %> <a href="$URL.URL" rel="nofollow">$AuthorName.XML</a></h4>
|
||||
<% else %>
|
||||
<% _t('CommentsInterface_singlecomment_ss.PBY','Posted by') %> $AuthorName.XML, $Created.Nice ($Created.Ago)
|
||||
<h4><% _t('CommentsInterface_singlecomment_ss.PBY','Posted by') %> $AuthorName.XML</h4>
|
||||
<% end_if %>
|
||||
</p>
|
||||
<div class="date">$Created.Nice ($Created.Ago)</div>
|
||||
<% if TwitterUsername %><div><span class="twitterFollowButton"><a href="http://www.twitter.com/{$TwitterUsername}" class="twitter-follow-button" data-show-count="true">$TwitterUsername</a></span></div><% end_if %>
|
||||
$EscapedComment
|
||||
|
||||
<% if $ApproveLink || $SpamLink || $HamLink || $DeleteLink %>
|
||||
<% if $CanReply %><ul class="no-bullet replyButtonContainer">
|
||||
<li class="replyButton"><button type="button" class="btn btn-primary small radius" data-comment-to-reply-to-id="$ID">Reply</button></li>
|
||||
<li class="cancelReplyButton hidden"><button type="button" class="btn btn-primary small radius" data-comment-to-reply-to-id="$ID">Cancel Reply</button></li>
|
||||
</ul><% end_if %>
|
||||
|
||||
<% if $ApproveLink || $SpamLink || $HamLink || $DeleteLink %>
|
||||
<ul class="action-links">
|
||||
<% if ApproveLink %>
|
||||
<li><a href="$ApproveLink.ATT" class="approve"><% _t('CommentsInterface_singlecomment_ss.APPROVE', 'approve this comment') %></a></li>
|
||||
@ -28,4 +31,7 @@
|
||||
<% end_if %>
|
||||
</ul>
|
||||
<% end_if %>
|
||||
</div>
|
||||
<% end_if %>
|
||||
<% if $Gravatar %><div class="gravatarContainer"><img class="gravatar" src="$Gravatar" alt="Gravatar for $Name" title="Gravatar for $Name" /></div><% end_if %>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user