Skip to content

Commit dd84a8f

Browse files
committed
Add "Sent" column to the archived table
1 parent 7e54bb3 commit dd84a8f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

app/views/puzzles/_puzzles_table.html.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<th>Answer</th>
66
<th>Explanation</th>
77
<th>Link</th>
8+
<% if actions == :archived %>
9+
<th>Sent</th>
10+
<% end %>
811
<th>Actions</th>
912
</tr>
1013
</thead>
@@ -20,6 +23,9 @@
2023
&nbsp;
2124
<% end %>
2225
</td>
26+
<% if actions == :archived %>
27+
<td><%= time_ago_in_words(puzzle.sent_at) %> ago</td>
28+
<% end %>
2329
<td>
2430
<% if actions == :pending %>
2531
<%= button_to 'Approve', puzzle_state_path(puzzle, state: :approved), method: :patch, form_class: 'inline-form', class: 'btn approve-btn' %>

0 commit comments

Comments
 (0)