@@ -14,7 +14,8 @@ class="comment-box">
1414 <div class =" flex-container-row wrap items-center gap-x-xs" >
1515 @if ($comment -> createdBy )
1616 <div >
17- <img width =" 50" src =" {{ $comment -> createdBy -> getAvatar (50 ) } }" class =" avatar block mr-xs" alt =" {{ $comment -> createdBy -> name } }" >
17+ <img width =" 50" src =" {{ $comment -> createdBy -> getAvatar (50 ) } }" class =" avatar block mr-xs"
18+ alt =" {{ $comment -> createdBy -> name } }" >
1819 </div >
1920 @endif
2021 <div class =" meta text-muted flex-container-row wrap items-center flex text-small" >
@@ -23,50 +24,55 @@ class="comment-box">
2324 @else
2425 {{ trans (' common.deleted_user' ) } }
2526 @endif
26- <span title =" {{ $comment -> created_at } }" >  ; {{ trans (' entities.comment_created' , [' createDiff' => $comment -> created_at -> diffForHumans ( ) ]) } } </span >
27+ <span title =" {{ $dates -> absolute ( $ comment-> created_at ) } }" >  ; {{ trans (' entities.comment_created' , [' createDiff' => $dates -> relative ( $comment -> created_at ) ]) } } </span >
2728 @if ($comment -> isUpdated () )
2829 <span class =" mx-xs" >&bull ; </span >
29- <span title =" {{ trans (' entities.comment_updated' , [' updateDiff' => $comment -> updated_at , ' username' => $comment -> updatedBy -> name ?? trans (' common.deleted_user' )]) } }" >
30+ <span title =" {{ trans (' entities.comment_updated' , [' updateDiff' => $dates -> absolute ( $ comment-> updated_at ) , ' username' => $comment -> updatedBy -> name ?? trans (' common.deleted_user' )]) } }" >
3031 {{ trans (' entities.comment_updated_indicator' ) } }
3132 </span >
3233 @endif
3334 </div >
3435 <div class =" right-meta flex-container-row justify-flex-end items-center px-s" >
3536 @if (! $readOnly && (userCan (' comment-create-all' ) || userCan (' comment-update' , $comment ) || userCan (' comment-delete' , $comment )) )
36- <div class =" actions mr-s" >
37- @if (userCan (' comment-create-all' ) )
38- <button refs =" page-comment@reply-button" type =" button" class =" text-button text-muted hover-underline text-small p-xs" >@icon (' reply' ) {{ trans (' common.reply' ) } } </button >
39- @endif
40- @if (! $comment -> parent_id && (userCan (' comment-update' , $comment ) || userCan (' comment-delete' , $comment )) )
41- <button refs =" page-comment@archive-button"
42- type =" button"
43- data-is-archived =" {{ $comment -> archived ? ' true' : ' false' } }"
44- class =" text-button text-muted hover-underline text-small p-xs" >@icon (' archive' ) {{ trans (' common.' . ($comment -> archived ? ' unarchive' : ' archive' )) } } </button >
45- @endif
46- @if (userCan (' comment-update' , $comment ) )
47- <button refs =" page-comment@edit-button" type =" button" class =" text-button text-muted hover-underline text-small p-xs" >@icon (' edit' ) {{ trans (' common.edit' ) } } </button >
48- @endif
49- @if (userCan (' comment-delete' , $comment ) )
50- <div component =" dropdown" class =" dropdown-container" >
51- <button type =" button" refs =" dropdown@toggle" aria-haspopup =" true" aria-expanded =" false" class =" text-button text-muted hover-underline text-small p-xs" >@icon (' delete' ) {{ trans (' common.delete' ) } } </button >
52- <ul refs =" dropdown@menu" class =" dropdown-menu" role =" menu" >
53- <li class =" px-m text-small text-muted pb-s" >{{ trans (' entities.comment_delete_confirm' )} } </li >
54- <li >
55- <button refs =" page-comment@delete-button" type =" button" class =" text-button text-neg icon-item" >
56- @icon (' delete' )
57- <div >{{ trans (' common.delete' ) } } </div >
58- </button >
59- </li >
60- </ul >
61- </div >
62- @endif
63- <span class =" text-muted" >
37+ <div class =" actions mr-s" >
38+ @if (userCan (' comment-create-all' ) )
39+ <button refs =" page-comment@reply-button" type =" button"
40+ class =" text-button text-muted hover-underline text-small p-xs" >@icon (' reply' ) {{ trans (' common.reply' ) } } </button >
41+ @endif
42+ @if (! $comment -> parent_id && (userCan (' comment-update' , $comment ) || userCan (' comment-delete' , $comment )) )
43+ <button refs =" page-comment@archive-button"
44+ type =" button"
45+ data-is-archived =" {{ $comment -> archived ? ' true' : ' false' } }"
46+ class =" text-button text-muted hover-underline text-small p-xs" >@icon (' archive' ) {{ trans (' common.' . ($comment -> archived ? ' unarchive' : ' archive' )) } } </button >
47+ @endif
48+ @if (userCan (' comment-update' , $comment ) )
49+ <button refs =" page-comment@edit-button" type =" button"
50+ class =" text-button text-muted hover-underline text-small p-xs" >@icon (' edit' ) {{ trans (' common.edit' ) } } </button >
51+ @endif
52+ @if (userCan (' comment-delete' , $comment ) )
53+ <div component =" dropdown" class =" dropdown-container" >
54+ <button type =" button" refs =" dropdown@toggle" aria-haspopup =" true" aria-expanded =" false"
55+ class =" text-button text-muted hover-underline text-small p-xs" >@icon (' delete' ) {{ trans (' common.delete' ) } } </button >
56+ <ul refs =" dropdown@menu" class =" dropdown-menu" role =" menu" >
57+ <li class =" px-m text-small text-muted pb-s" >{{ trans (' entities.comment_delete_confirm' )} } </li >
58+ <li >
59+ <button refs =" page-comment@delete-button" type =" button"
60+ class =" text-button text-neg icon-item" >
61+ @icon (' delete' )
62+ <div >{{ trans (' common.delete' ) } } </div >
63+ </button >
64+ </li >
65+ </ul >
66+ </div >
67+ @endif
68+ <span class =" text-muted" >
6469   ;&bull ;  ;
6570 </span >
66- </div >
71+ </div >
6772 @endif
6873 <div >
69- <a class =" bold text-muted text-small" href =" #comment{{ $comment -> local_id } }" >#{{ $comment -> local_id } } </a >
74+ <a class =" bold text-muted text-small"
75+ href =" #comment{{ $comment -> local_id } }" >#{{ $comment -> local_id } } </a >
7076 </div >
7177 </div >
7278 </div >
@@ -76,7 +82,8 @@ class="text-button text-muted hover-underline text-small p-xs">@icon('archive')
7682 <div refs =" page-comment@content-container" class =" content" >
7783 @if ($comment -> parent_id )
7884 <p class =" comment-reply" >
79- <a class =" text-muted text-small" href =" #comment{{ $comment -> parent_id } }" >@icon (' reply' ){{ trans (' entities.comment_in_reply_to' , [' commentId' => ' #' . $comment -> parent_id ]) } } </a >
85+ <a class =" text-muted text-small"
86+ href =" #comment{{ $comment -> parent_id } }" >@icon (' reply' ){{ trans (' entities.comment_in_reply_to' , [' commentId' => ' #' . $comment -> parent_id ]) } } </a >
8087 </p >
8188 @endif
8289 @if ($comment -> content_ref )
@@ -86,7 +93,8 @@ class="text-button text-muted hover-underline text-small p-xs">@icon('archive')
8693 option:page-comment-reference:view-comment-text =" {{ trans (' entities.comment_view' ) } }"
8794 option:page-comment-reference:jump-to-thread-text =" {{ trans (' entities.comment_jump_to_thread' ) } }"
8895 option:page-comment-reference:close-text =" {{ trans (' common.close' ) } }"
89- href =" #" >@icon (' bookmark' ){{ trans (' entities.comment_reference' ) } } <span >{{ trans (' entities.comment_reference_outdated' ) } } </span ></a >
96+ href =" #" >@icon (' bookmark' ){{ trans (' entities.comment_reference' ) } }
97+ <span >{{ trans (' entities.comment_reference_outdated' ) } } </span ></a >
9098 </div >
9199 @endif
92100 {!! $commentHtml ! !}
@@ -95,10 +103,12 @@ class="text-button text-muted hover-underline text-small p-xs">@icon('archive')
95103 @if (! $readOnly && userCan (' comment-update' , $comment ) )
96104 <form novalidate refs =" page-comment@form" hidden class =" content pt-s px-s block" >
97105 <div class =" form-group description-input" >
98- <textarea refs =" page-comment@input" name =" html" rows =" 3" placeholder =" {{ trans (' entities.comment_placeholder' ) } }" >{{ $commentHtml } } </textarea >
106+ <textarea refs =" page-comment@input" name =" html" rows =" 3"
107+ placeholder =" {{ trans (' entities.comment_placeholder' ) } }" >{{ $commentHtml } } </textarea >
99108 </div >
100109 <div class =" form-group text-right" >
101- <button type =" button" class =" button outline" refs =" page-comment@form-cancel" >{{ trans (' common.cancel' ) } } </button >
110+ <button type =" button" class =" button outline"
111+ refs =" page-comment@form-cancel" >{{ trans (' common.cancel' ) } } </button >
102112 <button type =" submit" class =" button" >{{ trans (' entities.comment_save' ) } } </button >
103113 </div >
104114 </form >
0 commit comments