Commit f303d3b2

mo khan <mo@mokhan.ca>
2014-06-07 23:35:26
display the sha256 in the admin section.
1 parent 6526365
Changed files (2)
app
app/views/admin/photos/index.html.erb
@@ -11,6 +11,7 @@
           <th>original</th>
           <th>content type</th>
           <th>geolocation</th>
+          <th>sha256</th>
           <th>created</th>
           <th>updated</th>
         </tr>
@@ -24,6 +25,7 @@
             <td><%= photo.original_filename %></td>
             <td><%= photo.content_type %></td>
             <td><%= photo.latitude %> <%= photo.longitude %></td>
+            <td><%= photo.sha256 %></td>
             <td><%= time_ago_in_words(photo.created_at) %> ago</td>
             <td><%= time_ago_in_words(photo.updated_at) %> ago</td>
           </tr>
app/views/admin/photos/show.html.erb
@@ -11,6 +11,7 @@
           <th>original</th>
           <th>content type</th>
           <th>geolocation</th>
+          <th>sha256</th>
           <th>created</th>
           <th>updated</th>
         </tr>
@@ -23,6 +24,7 @@
         <td><%= @photo.original_filename %></td>
         <td><%= @photo.content_type %></td>
         <td><%= @photo.latitude %> <%= @photo.longitude %></td>
+        <td><%= @photo.sha256 %></td>
         <td><%= @photo.created_at %></td>
         <td><%= @photo.updated_at %></td>
       </tr>