Add support for logical deletion of diary entries and comments.
[rails.git] / app / views / diary_entry / _diary_entry.html.erb
index 082231b195985edca5f3e917a558e4670daf5b16..3e6ee02aabbf2432cdcb7cac6daccc73791f6909 100644 (file)
@@ -15,5 +15,8 @@
 <% if @user == diary_entry.user %> 
 | <%= link_to t('diary_entry.diary_entry.edit_link'), :action => 'edit', :display_name => @user.display_name, :id => diary_entry.id %>
 <% end %>
+<% if @user && @user.administrator? %> 
+| <%= link_to t('diary_entry.diary_entry.hide_link'), {:action => 'hide', :display_name => @user.display_name, :id => diary_entry.id}, {:confirm => t('diary_entry.diary_entry.confirm')} %>
+<% end %>
 <br />
 <hr />