summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-02-07 08:52:14 -0700
committermo khan <mo@mokhan.ca>2015-02-07 08:52:14 -0700
commit8ccc61d1b3b4f1d343c4a0ae66c33401af160b03 (patch)
tree38ed7e714516f69c82757e3bcbc927e38246f086
parent4faa654334dcf2460a2fbaae82da31bccc23c139 (diff)
display reports for each disposition.
-rw-r--r--app/views/dispositions/show.html.erb19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/dispositions/show.html.erb b/app/views/dispositions/show.html.erb
index b60f875..7056b3c 100644
--- a/app/views/dispositions/show.html.erb
+++ b/app/views/dispositions/show.html.erb
@@ -15,4 +15,23 @@
<%= link_to 'Edit', edit_disposition_path(@disposition) %> |
<%= link_to 'Back', dispositions_path %>
</div>
+
+ <div class="small-12 columns">
+ <table>
+ <thead>
+ <tr>
+ <th>Report</th>
+ <th width="210">Created At</th>
+ </tr>
+ </thead>
+ <tbody>
+ <% @disposition.file_reports.each do |report| %>
+ <tr>
+ <td><%= report.data %></td>
+ <td><%= report.created_at %></td>
+ </tr>
+ <% end %>
+ </tbody>
+ </table>
+ </div>
</div>