Affichage des meta-données "cron" et "list"
This commit is contained in:
parent
570a1ec40e
commit
8225ca4965
|
@ -14,6 +14,14 @@
|
||||||
background-color: orange;
|
background-color: orange;
|
||||||
padding: 1px 2px;
|
padding: 1px 2px;
|
||||||
}
|
}
|
||||||
|
.email_attribute_cron {
|
||||||
|
background-color: #cdcdcd;
|
||||||
|
padding: 1px 2px;
|
||||||
|
}
|
||||||
|
.email_attribute_mailing_list {
|
||||||
|
background-color: #99ff00;
|
||||||
|
padding: 1px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.email_content th {
|
.email_content th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Subject</th>
|
<th>Subject</th>
|
||||||
<th>Clients</th>
|
<th>Metadata</th>
|
||||||
<th>Servers</th>
|
|
||||||
<th colspan="3"></th>
|
<th colspan="3"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -22,11 +21,15 @@
|
||||||
<% email.organisations.each do |organisation| %>
|
<% email.organisations.each do |organisation| %>
|
||||||
<span class="email_attribute_organisation"><%= organisation %></span>
|
<span class="email_attribute_organisation"><%= organisation %></span>
|
||||||
<% end if email.organisations %>
|
<% end if email.organisations %>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<% email.servers.each do |server| %>
|
<% email.servers.each do |server| %>
|
||||||
<span class="email_attribute_server"><%= server %></span>
|
<span class="email_attribute_server"><%= server %></span>
|
||||||
<% end if email.servers %>
|
<% end if email.servers %>
|
||||||
|
<% if email.cron? %>
|
||||||
|
<span class="email_attribute_cron">cron</span>
|
||||||
|
<% end %>
|
||||||
|
<% if email.mailing_list? %>
|
||||||
|
<span class="email_attribute_mailing_list">list</span>
|
||||||
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<td><%= link_to 'Show', email %></td>
|
<td><%= link_to 'Show', email %></td>
|
||||||
<td><%= link_to 'Edit', edit_email_path(email) %></td>
|
<td><%= link_to 'Edit', edit_email_path(email) %></td>
|
||||||
|
|
Loading…
Reference in a new issue