affichage de l'expéditeur dans la liste
This commit is contained in:
parent
0349efb3e3
commit
6e1682452c
|
@ -4,6 +4,7 @@
|
|||
<thead class="bg-gray-50">
|
||||
<tr>
|
||||
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
|
||||
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">From</th>
|
||||
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Subject</th>
|
||||
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Metadata</th>
|
||||
<th scope="col" class="relative px-6 py-3"><span class="sr-only">Show, Edit, Destroy</span></th>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<tr class="<%= cycle('bg-white', 'bg-gray-50', :name => 'zebra') %>">
|
||||
<td class="px-6 py-4 whitespace-nowrap"><%= email.date.strftime("%Y-%m-%d %H:%M") %></td>
|
||||
<td class="px-6 py-4"><%= email.subject %></td>
|
||||
<td class="px-2 py-1 space-x-1">
|
||||
<td class="px-6 py-4"><%= link_to email.from.join(', '), email, "data-turbo-frame": "_top" %></td>
|
||||
<td class="px-6 py-4"><%= link_to email.subject, email, "data-turbo-frame": "_top" %></td>
|
||||
<td class="px-2 py-1 space-y-1 space-x-1">
|
||||
<% email.organisations.each do |organisation| %>
|
||||
<span class="flex px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_organisation"><%= organisation %></span>
|
||||
<% end if email.organisations %>
|
||||
|
|
Loading…
Reference in a new issue