]> BookStack Code Mirror - bookstack/blob - resources/views/comments/list-item.blade.php
Update/fix german translation
[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" ng-if="::comment.active" class="comment-body" ng-class="!comment.active ? 'comment-inactive' : ''">
10
11         </div>
12         <div ng-if="::!comment.active" class="comment-body comment-inactive">
13             {{ trans('entities.comment_deleted') }}
14         </div>
15         <div class="comment-actions">
16             <ul ng-if="!comment.is_hidden">
17                 <li ng-if="::(level < 3 && vm.canComment())"><a href="#" comment-reply-link no-comment-reply-dupe="true" comment="comment" is-reply="true">{{ trans('entities.comment_reply') }}</a></li>
18                 <li ng-if="::vm.canEditDelete(comment, 'comment_update')"><a href="#" comment-reply-link no-comment-reply-dupe="true" comment="comment" >{{ trans('entities.comment_edit') }}</a></li>
19                 <li ng-if="::vm.canEditDelete(comment, 'comment_delete')"><a href="#" comment-delete-link comment="comment" >{{ trans('entities.comment_delete') }}</a></li>
20                 <li>{{ trans('entities.comment_create') }} <a title="@{{::comment.created.day_time_str}}" href="#?cm=comment-@{{::pageId}}-@{{::comment.id}}">@{{::comment.created.diff}}</a></li>
21                 <li ng-if="::comment.updated"><span title="@{{::comment.updated.day_time_str}}">@{{ ::vm.trans('entities.comment_updated_text', { updateDiff: comment.updated.diff }) }}
22                         <a href="@{{::comment.updated_by.profile_url}}">@{{::comment.updated_by.name}}</a></span></li>
23             </ul>
24         </div>
25         <div class="comment-box" ng-repeat="comment in comments = comment.sub_comments track by comment.id" ng-init="level = level + 1">
26             <div ng-include src="'comment-list-item.html'">
27             </div>
28         </div>
29     </div>
30 </div>