<% if params[:folder] == "sent" %>

Sent Messages

<% elsif params[:folder] == "received" %>

Received Messages

<% else %>

Messages

<% end %> <%= render "search" %> <%= table_for @dmails, width: "100%" do |t| %> <% t.column "Date" do |dmail| %> <%= compact_time(dmail.created_at) %> <% end %> <% t.column "From" do |dmail| %> <% if dmail.filtered? %> <%= link_to "[filtered]", user_path(dmail.from) %> <% else %> <%= link_to_user dmail.from %> <% end %> <% end %> <% t.column "To" do |dmail| %> <%= link_to_user dmail.from %> <% end %> <% t.column "Subject" do |dmail| %> <% if dmail.filtered? %> <%= link_to "[filtered]", dmail_path(dmail) %> <% else %> <%= link_to dmail.title, dmail_path(dmail) %> <% end %> <% end %> <% t.column do |dmail| %> <%= link_to "delete", dmail_path(dmail), :method => :delete, :data => {:confirm => "Are you sure you want to delete this Dmail?"} %> <% end %> <% end %> <%= numbered_paginator(@dmails) %>
<%= render "secondary_links" %> <% content_for(:page_title) do %> Messages - <%= Danbooru.config.app_name %> <% end %>