gallery/app/views/admin/galleries/_image.html.erb

15 lines
692 B
Plaintext
Raw Permalink Normal View History

<li class="rgalbum" data-image-id="<%= image.id.to_s %>">
<a href="<%= admin_image_path(image.id) %>">
<img src="<%= image.file.thumb %>">
</a>
2014-07-31 09:12:57 +00:00
<% if can_edit_or_delete?(@album) %>
<ul class="photo-action clearfix">
<li class="photo_cover"><i class="<%= (@album.cover.to_s == image.id.to_s)? "icons-star" : "icons-star-2" %>"></i></li>
<li class="phtot_depiction"><a href="#view-photo-depiction" class="open" for="description"><i class="icon-comment-alt"></i></a></li>
<li class="phtot_tag"><a href="#view-photo-tags" class="open" for="tags"><i class="icons-tag"></i></a></li>
</ul>
<% end %>
<div class="check">
<input type="checkbox" class="checkbox">
</div>
</li>