59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
<div id="c-dmails">
|
|
<div id="a-index">
|
|
<% if params[:folder] == "sent" %>
|
|
<h1>Sent Messages</h1>
|
|
<% elsif params[:folder] == "received" %>
|
|
<h1>Received Messages</h1>
|
|
<% else %>
|
|
<h1>Messages</h1>
|
|
<% end %>
|
|
|
|
<%= render "search" %>
|
|
|
|
<table class="striped" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>From</th>
|
|
<th>To</th>
|
|
<th>Subject</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @dmails.each do |dmail| %>
|
|
<tr class="read-<%= dmail.is_read? %>">
|
|
<td><%= compact_time(dmail.created_at) %></td>
|
|
<td>
|
|
<% if dmail.filtered? %>
|
|
<%= link_to "[filtered]", user_path(dmail.from) %>
|
|
<% else %>
|
|
<%= link_to_user dmail.from %>
|
|
<% end %>
|
|
</td>
|
|
<td><%= link_to_user dmail.to %></td>
|
|
<td>
|
|
<% if dmail.filtered? %>
|
|
<%= link_to "[filtered]", dmail_path(dmail) %>
|
|
<% else %>
|
|
<%= link_to dmail.title, dmail_path(dmail) %>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<%= link_to "delete", dmail_path(dmail), :method => :delete, :data => {:confirm => "Are you sure you want to delete this Dmail?"} %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%= numbered_paginator(@dmails) %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Messages - <%= Danbooru.config.app_name %>
|
|
<% end %>
|