Sha256: 5824f783c205dae1d3d9261bfc8833c2e9c85030b9929d4eb541e60356a1648f
Contents?: true
Size: 1.63 KB
Versions: 20
Compression:
Stored size: 1.63 KB
Contents
<tr class="<%= cycle('odd', 'even') %>"> <td class="icon"> <%= content_tag('span', '', :class => "icon #{attachment.icon_css_class}") %> </td> <td class="name"> <%- if permitted_to?(:show, :attachments) -%> <%= link_to( attachment.name, admin_attachment_path(attachment), :target => '_blank', :title => _('View File') ) %> <%- else -%> <%= attachment.name %> <%- end -%> </td> <td class="file_name"><%= attachment.filename %></td> <td class="file_type"><%= mime_to_human(attachment.content_type) %></td> <td class="file_size"><%= number_to_human_size(attachment.size) %></td> <td class="date"><%= l(attachment.created_at) %></td> <td class="tools long"> <%- permitted_to?(:download, :attachments) do -%> <%= link_to( "", download_admin_attachment_path(attachment), :title => (_("download_file_'%{filename}'") % {:filename => attachment.filename}), :class => "icon file_download" ) %> <%- end -%> <%- permitted_to?(:destroy, :admin_attachments) do -%> <%= link_to_confirmation_window( "", _("confirm_to_delete_file"), admin_attachment_path( :id => attachment, :query => params[:query], :page => params[:page], :per_page => params[:per_page] ), { :class => 'icon file_delete', :title => _('delete_file') } ) -%> <%- end -%> <%- permitted_to?(:edit, :admin_attachments) do -%> <%= link_to_overlay_window("", edit_admin_attachment_path(attachment, :query => params[:query], :page => params[:page]), { :title => _('rename_file'), :size => '380x45' }, :class => 'icon file_edit', :title => _('rename_file') ) -%> <%- end -%> </td> </tr>
Version data entries
20 entries across 20 versions & 1 rubygems