Orbit/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-05-17 10:37:46 +00:00
<td><%= asset.title.i18n_variable[I18n.locale] rescue nil %></td>
2012-05-16 03:07:11 +00:00
<td>
2012-05-16 22:28:29 +00:00
<i class="icons-picture 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>
<li class="dropdown"><%= link_to t(:delete), admin_asset_path(asset), :confirm => t('sure?'), :method => :delete, :class => 'delete' %></li>
</ul>
</div>
</td>
<td><%= asset.data.file.content_type %></td>
<td><%= number_to_human_size(asset.data.file.file_length) %></td>
2012-05-17 10:37:46 +00:00
<td><%= asset.description.i18n_variable[I18n.locale] 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| %>
<span class="label label-tags"><%= tag[I18n.locale] %></span>
<% 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>