Files
danbooru/app/views/dmails/_secondary_links.html.erb
evazion f8db577c25 dmails: replace hard deletions with soft deletions.
Turn deletions into soft deletions (set the is_deleted flag) instead of
hard deletions (remove from database). The is_deleted flag actually
already existed, but it was never used before.
2020-01-31 16:24:27 -06:00

14 lines
752 B
Plaintext

<% content_for(:secondary_links) do %>
<%= quick_search_form_for(:message_matches, dmails_path, "dmails") %>
<%= subnav_link_to "All", all_dmails_path(set_default_folder: true) %>
<%= subnav_link_to "Received", received_dmails_path(set_default_folder: true) %>
<%= subnav_link_to "Sent", sent_dmails_path(set_default_folder: true) %>
<%= subnav_link_to "Spam", spam_dmails_path %>
<%= subnav_link_to "Deleted", dmails_path(search: { is_deleted: true }) %>
<li>|</li>
<%= subnav_link_to "New", new_dmail_path %>
<%= subnav_link_to "Mark all as read", {:controller => "dmails", :action => "mark_all_as_read"}, :method => :post, :remote => true %></li>
<li>|</li>
<%= subnav_link_to "Help", wiki_page_path("help:dmail") %>
<% end %>