]> BookStack Code Mirror - bookstack/blob - resources/views/comments/list-item.blade.php
46af1a862005a184cb20677ce52de679f8232ee5
[bookstack] / resources / views / comments / list-item.blade.php
1 <div class='page-comment' id="comment-@{{::pageId}}-@{{::comment.id}}">
2     <div class="user-image">
3         <img ng-src="@{{::comment.created_by.avatar_url}}" alt="user avatar">
4     </div>
5     <div class="comment-container">
6         <div class="comment-header">
7             <a href="@{{::comment.created_by.profile_url}}">@{{ ::comment.created_by.name }}</a>
8         </div>
9         <div ng-bind-html="comment.html" class="comment-body">
10
11         </div>
12         <div class="comment-actions">
13             <ul>
14                 <li ng-if="level < 3"><a href="#" comment-reply-link no-comment-reply-dupe="true" comment="comment" is-reply="true">Reply</a></li>
15                 <li><a href="#" comment-reply-link no-comment-reply-dupe="true" comment="comment">Edit</a></li>
16                 <li>Created <a title="@{{::comment.created.day_time_str}}" href="#comment-@{{::comment.id}}-@{{::pageId}}">@{{::comment.created.diff}}</a></li>
17                 <li ng-if="comment.updated"><span title="@{{comment.updated.day_time_str}}">Updated @{{comment.updated.diff}} by
18                     <a href="@{{comment.updated_by.profile_url}}">@{{comment.updated_by.name}}</a></span></li>
19             </ul>
20         </div>
21         <div class="comment-box" ng-repeat="comment in comments = comment.sub_comments track by comment.id" ng-init="level = level + 1">
22             <div ng-include src="'comment-list-item.html'">
23             </div>
24         </div>
25     </div>
26 </div>