Commit 8ccc61d

mo khan <mo@mokhan.ca>
2015-02-07 15:52:14
display reports for each disposition.
1 parent 4faa654
Changed files (1)
app
views
dispositions
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>