Browse Source

#4: Added the comment date to the admin screen and a checkbox to bulk-select comments

tags/v2.2.0-beta.1
Andy Heathershaw 1 year ago
parent
commit
84f8ad75e9
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      resources/lang/en/admin.php
  2. +2
    -1
      resources/views/themes/base/admin/list_comments.blade.php

+ 1
- 1
resources/lang/en/admin.php View File

@@ -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.',


+ 2
- 1
resources/views/themes/base/admin/list_comments.blade.php View File

@@ -29,10 +29,11 @@
<tbody>
@foreach ($comments as $comment)
<tr>
<td class="text-center" style="width: 40px;"><input type="checkbox" name="comment_id" value="{{ $comment->id }}" /></td>
<td>
<p>
<a href="{{ route('comments.edit', ['id' => $comment->id]) }}"><span style="font-size: 1.3em;">{{ $comment->name }}</span></a><br/>
<span class="text-muted" style="font-size: smaller;">{{ trans('admin.comment_summary', ['album_name' => $comment->photo->album->name, 'photo_name' => $comment->photo->name]) }}</span>
<span class="text-muted" style="font-size: smaller;">{{ 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))]) }}</span>
</p>
<blockquote>{!! $comment->textAsHtml() !!}</blockquote>
</td>


Loading…
Cancel
Save