diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index eb234f530d..770280195c 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1253,11 +1253,11 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id 'POST_AUTHOR' => get_username_string('username', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), 'U_POST_AUTHOR' => get_username_string('profile', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), - 'S_HAS_ATTACHMENTS' => (!empty($attachments[$row['post_id']])) ? true : false, - 'S_FRIEND' => ($row['friend']) ? true : false, - 'S_IGNORE_POST' => ($row['foe']) ? true : false, - 'L_IGNORE_POST' => ($row['foe']) ? sprintf($user->lang['POST_BY_FOE'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), "", '') : '', - 'S_POST_DELETED' => ($row['post_visibility'] == ITEM_DELETED) ? true : false, + 'S_HAS_ATTACHMENTS' => !empty($attachments[$row['post_id']]), + 'S_FRIEND' => (bool) $row['friend'], + 'S_IGNORE_POST' => (bool) $row['foe'], + 'L_IGNORE_POST' => $row['foe'] ? $user->lang('POST_BY_FOE', get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), "", '') : '', + 'S_POST_DELETED' => $row['post_visibility'] == ITEM_DELETED, 'L_DELETE_POST' => $l_deleted_message, 'POST_SUBJECT' => $post_subject, diff --git a/phpBB/language/en/common.php b/phpBB/language/en/common.php index f04a0e891b..633ad7d19b 100644 --- a/phpBB/language/en/common.php +++ b/phpBB/language/en/common.php @@ -603,7 +603,7 @@ $lang = array_merge($lang, array( 'POSTS_UNAPPROVED_FORUM'=> 'At least one post in this forum has not been approved.', 'POST_BY_AUTHOR' => 'by', 'POST_BY_FOE' => '%1$s, who is currently on your ignore list, made this post.', - 'POST_DISPLAY' => '%1$sDisplay this post%2$s.', + 'POST_DISPLAY' => 'Display this post', 'POST_DAY' => '%.2f posts per day', 'POST_DELETED_ACTION' => 'Deleted post:', 'POST_DELETED' => 'This post has been deleted.', diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index d85ba35873..d8ea93a8dd 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -361,6 +361,17 @@ $('.display_post').click(function(e) { $('#post_hidden' + postId).hide(); }); +/** + * Display hidden post on post review page + */ +$('.display_post_review').on('click', function(e) { + e.preventDefault(); + + let $displayPostLink = $(this); + $displayPostLink.closest('.post-ignore').removeClass('post-ignore'); + $displayPostLink.hide(); +}); + /** * Toggle the member search panel in memberlist.php. * diff --git a/phpBB/styles/prosilver/template/posting_review.html b/phpBB/styles/prosilver/template/posting_review.html index 5813001247..57a90def3a 100644 --- a/phpBB/styles/prosilver/template/posting_review.html +++ b/phpBB/styles/prosilver/template/posting_review.html @@ -6,7 +6,8 @@