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

36 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2012-05-16 03:07:11 +00:00
<tr id="asset_<%= asset.id %>" class="with_action">
<td>
<%= check_box_tag 'files[]', asset.id, false, :class => "checkbox_in_list" %>
<input type="hidden" value="<%= asset.data.url %>" id="url_<%= asset.id %>" />
<% @site_in_use_locales.each_with_index do |locale, i| %>
<input type="hidden" value="<%= asset.description_translations[locale] rescue nil %>" id="<%= locale %>_desc_<%= asset.id %>" />
<input type="hidden" value="<%= asset.title_translations[locale] rescue nil %>" id="<%= locale %>_title_<%= asset.id %>" />
<% end %>
<input type="hidden" value="<%= File.extname(asset.data.url) %>" id="ext_<%= asset.id %>" />
</td>
<td><%= asset.title_translations[I18n.locale.to_s] rescue nil %></td>
<!-- <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>
<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> -->
<!-- <td><%#= asset.data.file.content_type rescue nil %></td> -->
2012-09-13 07:53:36 +00:00
<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>
<!-- <td>
2012-05-16 22:28:29 +00:00
<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> -->
<td>
<a href="<%= edit_admin_asset_path(asset) %>" class="editform">Edit</a>
</td>
</tr>