Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:a8c4c808e5e8a802933b
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
<% provide(:title, 'Photos') %>
<section class="upload-photo">
<div class="row">
<div class="span12">
<% if can? :create, @photo %>
<%= render 'form' %>
<% end %>
</div>
</div>
</section>
 
<section class="browse-photos">
<div class="row">
<div class="span12">
<div class="row">
<% if @photos.present? %>
<% @photos.each do |photo| %>
<div class="image-preview span4">
<%= link_to image_tag(photo.image_url(:small).to_s), photo %>
<p>
URL:
<input value="<%= photo.image_url(:large) %>" class="select-all-on-click">
</p>
<p><%= photo.image_identifier %></p>
<% if can? :destroy, @photo %>
<p>
<%= link_to 'View', photo_path(photo) %> |
<%= link_to 'Delete', photo, method: :delete, data: { confirm: 'Are you sure?' } %>
</p>
<% end %>
</div>
<% end %>
<% end %>
</div>
</div>
</div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.