suppression de classes redondantes
This commit is contained in:
parent
317587e1fb
commit
5d53e93fde
|
@ -30,7 +30,7 @@
|
|||
<th scope="row" class="w-56 px-4 py-2 align-top text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Clients</th>
|
||||
<td class="text-sm">
|
||||
<% email.organisations.presence.each do |organisation| %>
|
||||
<span class="flex px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_organisation"><%= organisation %></span>
|
||||
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_organisation"><%= organisation %></span>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -40,7 +40,7 @@
|
|||
<th scope="row" class="w-56 px-4 py-2 align-top text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Servers</th>
|
||||
<td class="text-sm">
|
||||
<% email.servers.presence.each do |server| %>
|
||||
<span class="flex px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_server"><%= server %></span>
|
||||
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_server"><%= server %></span>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -50,7 +50,7 @@
|
|||
<th scope="row" class="w-56 px-4 py-2 align-top text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Issues</th>
|
||||
<td class="text-sm">
|
||||
<% email.issues.presence.each do |issue| %>
|
||||
<span class="flex px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_issue"><%= issue %></span>
|
||||
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_issue"><%= issue %></span>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -58,7 +58,7 @@
|
|||
<tr>
|
||||
<th scope="row" class="w-56 px-4 py-2 align-top text-left text-xs font-medium text-gray-500 uppercase tracking-wider">From Cron</th>
|
||||
<td class="text-sm">
|
||||
<span class="flex px-2 inline-flex text-xs leading-5 font-semibold rounded-full <%= email.cron? ? "email_attribute_cron" : "" %>"><%= email.cron? ? "Yes" : "No" %></span>
|
||||
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full <%= email.cron? ? "email_attribute_cron" : "" %>"><%= email.cron? ? "Yes" : "No" %></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -4,19 +4,19 @@
|
|||
<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>
|
||||
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_organisation"><%= organisation %></span>
|
||||
<% end if email.organisations %>
|
||||
<% email.servers.each do |server| %>
|
||||
<span class="flex px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_server"><%= server %></span>
|
||||
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_server"><%= server %></span>
|
||||
<% end if email.servers %>
|
||||
<% if email.cron? %>
|
||||
<span class="flex px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_cron">cron</span>
|
||||
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_cron">cron</span>
|
||||
<% end %>
|
||||
<% if email.mailing_list? %>
|
||||
<span class="flex px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_mailing_list">list</span>
|
||||
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_mailing_list">list</span>
|
||||
<% end %>
|
||||
<% if email.junk? %>
|
||||
<span class="flex px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_junk">junk</span>
|
||||
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full email_attribute_junk">junk</span>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="px-2 py-1">
|
||||
|
|
Loading…
Reference in a new issue