2015-04-16 15:10:25 +00:00
|
|
|
<li class="rgalbum" data-image-id="<%= album.id %>">
|
2019-09-25 06:53:46 +00:00
|
|
|
<div class="check">
|
|
|
|
<input type="checkbox" class="checkbox" name='album_id' value='<%= album.id %>'>
|
|
|
|
</div>
|
2014-05-05 06:07:18 +00:00
|
|
|
<a href="<%= admin_gallery_path(album.id) %>">
|
|
|
|
<% if album.cover == "default" %>
|
|
|
|
<%= image_tag "gallery/default.jpg" %>
|
|
|
|
<% else %>
|
|
|
|
<img src="<%= album.cover_path %>">
|
|
|
|
<% end %>
|
|
|
|
<p class="albumname"><%= album.name %></p>
|
|
|
|
</a>
|
|
|
|
<ul class="gallery_info clearfix">
|
|
|
|
<!-- <li class="view"><i class="icons-eye"></i> 321</li> -->
|
|
|
|
<li><i class="icons-tag"></i></li>
|
2014-07-31 09:12:57 +00:00
|
|
|
<% if can_edit_or_delete?(album) %>
|
|
|
|
<li><%= link_to (content_tag(:i,"",:class=>"icon-trash danger")), admin_gallery_path(album.id), "data-confirm" => "Are you sure?", :method=>:delete %></li>
|
|
|
|
<% end %>
|
2019-09-30 14:24:14 +00:00
|
|
|
<li class="albumcateg"><%= (Category.find(album.category_id).title rescue album.category_id) %></li>
|
2014-05-05 06:07:18 +00:00
|
|
|
</ul>
|
|
|
|
<ul class="albumtag">
|
2020-03-17 09:25:08 +00:00
|
|
|
<!--
|
|
|
|
<%# album.tags.each do |tag| %>
|
|
|
|
<%# r = @tags.select { |k| k.id.to_s == tag.id.to_s } %>
|
|
|
|
<li class="label"><%# r.map {|t| t.name}[0]%></li>
|
|
|
|
<%# end%>
|
|
|
|
-->
|
2014-05-05 06:07:18 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|