Move to sane directory structure. Don't make 'cms' the top level of the silverstripe...
[silverstripe-elijah.git] / templates / PageCommentInterface.ss
blob9f58c81a283646adb6ddd258d7f36754ab80a8f9
1 <div id="PageComments_holder" class="typography">
2         <h4>Post your comment</h4>
3         
4         $PostCommentForm
5         
6         <h4>Comments</h4>
7         
8         <div id="CommentHolder">
9                 <% if Comments %>
10                         <ul id="PageComments">
11                                 <% control Comments %>
12                                         <li class="$EvenOdd<% if FirstLast %> $FirstLast <% end_if %> $SpamClass">
13                                                 <% include PageCommentInterface_singlecomment %>
14                                         </li>
15                                 <% end_control %>
16                         </ul>
17                         
18                         <% if Comments.MoreThanOnePage %>
19                                 <div id="PageCommentsPagination">
20                                         <% if Comments.PrevLink %>
21                                                 <a href="$Comments.PrevLink">&laquo; previous</a>
22                                         <% end_if %>
23                                         
24                                         <% if Comments.Pages %>
25                                                 <% control Comments.Pages %>
26                                                         <% if CurrentBool %>
27                                                                 <strong>$PageNum</strong>
28                                                         <% else %>
29                                                                 <a href="$Link">$PageNum</a>
30                                                         <% end_if %>
31                                                 <% end_control %>
32                                         <% end_if %>
33         
34                                         <% if Comments.NextLink %>
35                                                 <a href="$Comments.NextLink">next &raquo;</a>
36                                         <% end_if %>
37                                 </div>
38                         <% end_if %>
39                 <% else %>
40                         <p id="NoComments">No one has commented on this page yet.</p>
41                 <% end_if %>
42         </div>
43         
44 </div>
45