summaryrefslogtreecommitdiff
path: root/app/views/admin/photos/show.html.erb
blob: 11299105c73081daacbe8feef031ce8fda67c2a9 (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
32
33
34
35
36
37
38
39
40
41
42
<div class="row">
  <div class="col-3">
    <%= render partial: "my/shared/my_nav" %>
  </div>
  <div class="col-9">
    <h1>Photo <small><%= @photo.id %></small></h1>
    <p><%= link_to "<< Back", admin_photos_path %></p>
    <table class="table table-condensed">
      <thead>
        <tr>
          <th>id</th>
          <th>processing</th>
          <th>filename</th>
          <th>original</th>
          <th>content type</th>
          <th>geolocation</th>
          <th>sha256</th>
          <th>created</th>
          <th>updated</th>
        </tr>
      </thead>
      <tbody>
      <tr>
        <td><%= link_to @photo.id, admin_photo_path(@photo.id) %></td>
        <td><%= @photo.image_processing %></td>
        <td><%= @photo.image %></td>
        <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>
      </tbody>
    </table>

    <h2><%= @photo.image %></h2>
    <%= image_tag @photo.url_for(:original) %>
    <%= image_tag @photo.url_for(:large) %>
    <%= image_tag @photo.url_for(:thumb) %>
  </div>
</div>