36 lines
1.7 KiB
Plaintext
36 lines
1.7 KiB
Plaintext
|
<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>
|
||
|
<i class="icons-pictures img-peview" rel="popover" data-content="<img src='<%= asset.data.url %>' />" data-original-title="<%= asset.data.filename %>"></i>
|
||
|
<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 rescue nil %></td> -->
|
||
|
<td><%= number_to_human_size(asset.data.file.file_length) rescue nil %></td>
|
||
|
<td><%= asset.description rescue nil %></td>
|
||
|
<!-- <td>
|
||
|
<div class="label-group">
|
||
|
<div class="label-td">
|
||
|
<% asset.sorted_tags.each do |tag| %>
|
||
|
<span class="label label-tags"><%= tag.name %></span>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|
||
|
</td> -->
|
||
|
<td>
|
||
|
<a href="<%= edit_admin_asset_path(asset) %>" class="editform">Edit</a>
|
||
|
</td>
|
||
|
</tr>
|