2012-05-16 03:07:11 +00:00
|
|
|
<tr id="asset_<%= asset.id %>" class="with_action">
|
|
|
|
<td>
|
2013-09-09 15:10:04 +00:00
|
|
|
<%= check_box_tag 'files[]', asset.id, false, :class => "checkbox_in_list" %>
|
|
|
|
<input type="hidden" value="<%= asset.data.url %>" id="url_<%= asset.id %>" />
|
|
|
|
<% @site_valid_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 %>
|
|
|
|
</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">
|
2013-09-09 15:10:04 +00:00
|
|
|
<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>
|
2013-09-09 15:10:04 +00:00
|
|
|
</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>
|
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>
|
2013-09-09 15:10:04 +00:00
|
|
|
<td>
|
|
|
|
<a href="#" class="editform">Edit</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|