Show deleted diary entries to administrators, if the user isn't also deleted
[rails.git] / app / views / diary_entries / _diary_entry.html.erb
index 50b49c37f90130ebabe10477476082ce896c81ef..026ccee0e2b5158d640446ca6732407143739af5 100644 (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 %>
   <div class='post_heading clearfix'>
     <% if !@user %>
       <%= user_thumbnail diary_entry.user %>