23 lines
1 KiB
Plaintext
23 lines
1 KiB
Plaintext
<tr class="<%= cycle('bg-white', 'bg-gray-50', :name => 'zebra') %>">
|
|
<td class=" whitespace-nowrap"><%= link_to email.date.strftime("%Y-%m-%d %H:%M"), email, "data-turbo-frame": "_top", class: "block p-2" %></td>
|
|
<td class=""><%= link_to email.from.join(', '), email, "data-turbo-frame": "_top", class: "block p-2" %></td>
|
|
<td class=""><%= link_to email.subject, email, "data-turbo-frame": "_top", class: "block p-2" %></td>
|
|
<td class="px-2 py-1 space-y-1 space-x-1">
|
|
<% email.organisations.each do |organisation| %>
|
|
<span class="pill pill-organisation"><%= organisation %></span>
|
|
<% end if email.organisations %>
|
|
<% email.servers.each do |server| %>
|
|
<span class="pill pill-server"><%= server %></span>
|
|
<% end if email.servers %>
|
|
<% if email.cron? %>
|
|
<span class="pill pill-cron">cron</span>
|
|
<% end %>
|
|
<% if email.mailing_list? %>
|
|
<span class="pill pill-list">list</span>
|
|
<% end %>
|
|
<% if email.junk? %>
|
|
<span class="pill pill-junk">junk</span>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|