Show deleted diary entries to administrators, if the user isn't also deleted

This will allow administrators to review diary entry deletions from non-spam users.
This commit is contained in:
Andy Allan 2019-06-05 15:30:08 +02:00
parent f2f3fbb1f1
commit 49fc17c6b6
3 changed files with 30 additions and 2 deletions

View file

@ -1,4 +1,4 @@
<div class='diary_post'>
<div class='diary_post<%= ' deemphasize' unless diary_entry.visible %>'>
<div class='post_heading clearfix'>
<% if !@user %>
<%= user_thumbnail diary_entry.user %>