blob: 8aaae7048df4e4cb857a7459a7d419eb02675580 (
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
|
<table>
<tr>
<th>Id</th>
<th>User</th>
<% for column in TrackThing.content_columns %>
<th><%= column.human_name %></th>
<% end %>
<th>Items sent by email</th>
<th>Actions</th>
</tr>
<% for track_thing in track_things %>
<tr class="<%= cycle('odd', 'even') %>">
<td><%=h track_thing.id %></td>
<td><%=user_both_links(track_thing.tracking_user) %></td>
<% for column in TrackThing.content_columns.map { |c| c.name } %>
<td><%=h track_thing.send(column) %></td>
<% end %>
<td><%= track_thing.track_things_sent_emails.size %></td>
<td>
<% form_tag '../../user/destroy_track' do %>
<div>
<%= hidden_field_tag 'track_id', track_thing.id %>
<%= submit_tag "Destroy track" %>
</div>
<% end %>
</td>
</tr>
<% end %>
</table>
|