This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/admin/assets/_asset.html.erb

31 lines
1.2 KiB
Plaintext
Raw Normal View History

2012-05-16 03:07:11 +00:00
<tr id="asset_<%= asset.id %>" class="with_action">
<td><%= check_box_tag 'to_delete[]', asset.id, false, :class => "checkbox_in_list" %></td>
2012-07-25 21:58:09 +00:00
<td><%= asset.title rescue nil %></td>
2012-05-16 03:07:11 +00:00
<td>
2012-11-28 16:26:36 +00:00
<i class="icons-pictures img-peview" rel="popover" data-content="<img src='<%= asset.data.url %>' />" data-original-title="<%= asset.data.filename %>"></i>
2012-05-16 03:07:11 +00:00
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t(:edit), edit_admin_asset_path(asset), :remote => true, :class => 'edit' %></li>
2012-11-27 03:15:15 +00:00
<li class="dropdown"><%= link_to t(:delete_), admin_asset_path(asset), :confirm => t('sure?'), :method => :delete, :class => 'delete' %></li>
2012-05-16 03:07:11 +00:00
</ul>
</div>
</td>
2012-09-13 07:53:36 +00:00
<td><%= asset.data.file.content_type rescue nil %></td>
<td><%= number_to_human_size(asset.data.file.file_length) rescue nil %></td>
2012-07-25 21:58:09 +00:00
<td><%= asset.description rescue nil %></td>
2012-05-16 22:28:29 +00:00
<td>
<div class="label-group">
<div class="label-td">
<% asset.sorted_tags.each do |tag| %>
2013-04-26 03:18:57 +00:00
<span class="label label-tags"><%= tag.name %></span>
2012-05-16 22:28:29 +00:00
<% end %>
</div>
</div>
</td>
</tr>
2012-05-16 22:28:29 +00:00
<script type="text/javascript">
$('.img-peview').popover({
delay: { show: 100, hide: 300 }
});
</script>