mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
ENHANCEMENT: Cater for threading when rendering comment. Addition of second JavaScript file
This commit is contained in:
parent
e7c3fbfe9f
commit
5128f51a59
@ -1,29 +1,18 @@
|
|||||||
<% if CommentsEnabled %>
|
<% if CommentsEnabled %>
|
||||||
|
<% require javascript('comments/javascript/commenting.js') %>
|
||||||
|
<% require css('comments/css/comments.css') %>
|
||||||
<div id="$CommentHolderID" class="comments-holder-container">
|
<div id="$CommentHolderID" class="comments-holder-container">
|
||||||
<h4><% _t('CommentsInterface_ss.POSTCOM','Post your comment') %></h4>
|
<h4 id="postYourCommentHeader"><% _t('CommentsInterface_ss.POSTCOM','Post your comment') %></h4>
|
||||||
|
|
||||||
<% if AddCommentForm %>
|
<div id="CommentsFormContainer"><% include CommentsInterfaceForm %></div>
|
||||||
<% if CanPost %>
|
|
||||||
<% if ModeratedSubmitted %>
|
|
||||||
<p id="$CommentHolderID_PostCommentForm_error" class="message good"><% _t('CommentsInterface_ss.AWAITINGMODERATION', 'Your comment has been submitted and is now awaiting moderation.') %></p>
|
|
||||||
<% end_if %>
|
|
||||||
$AddCommentForm
|
|
||||||
<% else %>
|
|
||||||
<p><% _t('CommentsInterface_ss.COMMENTLOGINERROR', 'You cannot post comments until you have logged in') %><% if PostingRequiresPermission %>,<% _t('CommentsInterface_ss.COMMENTPERMISSIONERROR', 'and that you have an appropriate permission level') %><% end_if %>.
|
|
||||||
<a href="Security/login?BackURL={$Parent.Link}" title="<% _t('CommentsInterface_ss.LOGINTOPOSTCOMMENT', 'Login to post a comment') %>"><% _t('CommentsInterface_ss.COMMENTPOSTLOGIN', 'Login Here') %></a>.
|
|
||||||
</p>
|
|
||||||
<% end_if %>
|
|
||||||
<% else %>
|
|
||||||
<p><% _t('CommentsInterface_ss.COMMENTSDISABLED', 'Posting comments has been disabled') %>.</p>
|
|
||||||
<% end_if %>
|
|
||||||
|
|
||||||
<h4><% _t('CommentsInterface_ss.COMMENTS','Comments') %></h4>
|
<h4 class="comments-heading"><% _t('CommentsInterface_ss.COMMENTS','Comments') %></h4>
|
||||||
|
|
||||||
<div class="comments-holder">
|
<div class="comments-holder">
|
||||||
<% if Comments %>
|
<% if Comments %>
|
||||||
<ul class="comments-list">
|
<ul class="comments-list">
|
||||||
<% loop Comments %>
|
<% loop Comments %>
|
||||||
<li class="comment $EvenOdd<% if FirstLast %> $FirstLast <% end_if %> $SpamClass">
|
<li class="depth{$Depth} comment $EvenOdd<% if FirstLast %> $FirstLast <% end_if %> $SpamClass">
|
||||||
<% include CommentsInterface_singlecomment %>
|
<% include CommentsInterface_singlecomment %>
|
||||||
</li>
|
</li>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
|
Loading…
Reference in New Issue
Block a user