From 84f8ad75e964857d176ccb3fa3d6039107288ef7 Mon Sep 17 00:00:00 2001 From: Andy Heathershaw Date: Sat, 22 Sep 2018 08:49:01 +0100 Subject: [PATCH] #4: Added the comment date to the admin screen and a checkbox to bulk-select comments --- resources/lang/en/admin.php | 2 +- resources/views/themes/base/admin/list_comments.blade.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lang/en/admin.php b/resources/lang/en/admin.php index 902b250..8775ccc 100644 --- a/resources/lang/en/admin.php +++ b/resources/lang/en/admin.php @@ -62,7 +62,7 @@ return [ 'cannot_remove_own_admin' => 'You cannot remove your own administrator permissions. Please ask another administrator to remove the administrator permissions for you.', 'change_album_message' => 'Please select the album to move the photo(s) to:', 'change_album_title' => 'Move photo(s) to another album', - 'comment_summary' => ':album_name / :photo_name', + 'comment_summary' => ':album_name / :photo_name / :comment_date', 'create_album' => 'Create a photo album', 'create_album_intro' => 'Photo albums contain individual photographs together in the same way as a physical photo album or memory book.', 'create_album_intro2' => 'Complete the form below to create a photo album.', diff --git a/resources/views/themes/base/admin/list_comments.blade.php b/resources/views/themes/base/admin/list_comments.blade.php index 229d4ba..27f6752 100644 --- a/resources/views/themes/base/admin/list_comments.blade.php +++ b/resources/views/themes/base/admin/list_comments.blade.php @@ -29,10 +29,11 @@ @foreach ($comments as $comment) +

{{ $comment->name }}
- {{ trans('admin.comment_summary', ['album_name' => $comment->photo->album->name, 'photo_name' => $comment->photo->name]) }} + {{ trans('admin.comment_summary', ['album_name' => $comment->photo->album->name, 'photo_name' => $comment->photo->name, 'comment_date' => date(UserConfig::get('date_format'), strtotime($comment->created_at))]) }}

{!! $comment->textAsHtml() !!}