seminar2/custom_gallery/app/views/admin/custom_galleries/_image.html.erb

18 lines
1.0 KiB
Plaintext

<li class="rgcustom_album" data-image-id="<%= image.id.to_s %>">
<a href="<%= admin_image_path(image.id) %>">
<img src="<%= image.file.thumb %>">
</a>
<% if can_edit_or_delete?(@custom_album) %>
<span class="photo_edit" style="position: absolute;top: 0;background: #fff;padding: 5px;">
<a style="height:auto;color: #000;width: auto;" href="/<%= I18n.locale.to_s%>/admin/images/<%=image.id.to_s %>/edit">
<i class="<%= (@custom_album.cover.to_s == image.id.to_s)? "editimage" : "editimage-2" %>"></i>edit</a></span>
<ul class="photo-action clearfix">
<li class="photo_cover"><i class="<%= (@custom_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>