blob: 6a896682f2a0e449c1f6389b37145c38a8cddf41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<div class="container">
<div class="columns">
<div class="column is-12">
<table class="table is-bordered is-striped is-narrow">
<thead>
<tr>
<th>to</th>
<th>from</th>
<th>subject</th>
<th>body</th>
<th>created at</th>
<th>updated at</th>
</tr>
</thead>
<tbody>
<% @emails.each do |email| %>
<tr>
<td><%= email.to.map { |x| mail_to(x["full"]) }.join(",").html_safe %></td>
<td><%= mail_to email.from["full"] %></td>
<td><%= email.subject %></td>
<td><%= email.body %></td>
<td><%= l email.created_at, format: :short %></td>
<td><%= l email.updated_at, format: :short %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
<div class="columns">
<div class="column is-12">
<%= paginate @emails, remote: false %>
</div>
</div>
</div>
|