]> BookStack Code Mirror - bookstack/blobdiff - resources/views/comments/list-item.blade.php
#47 - Updates the total comments when a comment is added.
[bookstack] / resources / views / comments / list-item.blade.php
index 22cbb24c05fe39f2095c1791e317b681d3306af1..12629f0d6857d786fe32c14caa626f13ccaf1221 100644 (file)
@@ -6,11 +6,11 @@
         <div class="comment-header">
             <a href="@{{::comment.created_by.profile_url}}">@{{ ::comment.created_by.name }}</a>
         </div>
-        <div ng-bind-html="comment.html" ng-if="::comment.active" class="comment-body">
+        <div ng-bind-html="comment.html" ng-if="::comment.active" class="comment-body" ng-class="!comment.active ? 'comment-inactive' : ''">
 
         </div>
-        <div ng-if="::!comment.active" class="comment-body">
-            {{ trans('entites.comment_deleted') }}
+        <div ng-if="::!comment.active" class="comment-body comment-inactive">
+            {{ trans('activities.comment_deleted') }}
         </div>
         <div class="comment-actions">
             <ul ng-if="!comment.is_hidden">