-
-
Save leemcalilly/a8c4c808e5e8a802933b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% 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