Sha256: f23689da1e556a976b06a4a81383deb8bc501e95c3e971858ff95a0dfc1939e3
Contents?: true
Size: 1.75 KB
Versions: 9
Compression:
Stored size: 1.75 KB
Contents
<tr class="<%= cycle('even', 'odd') %>"> <td class="icon"> <%= render_icon attachment.icon_css_class %> </td> <td class="name"> <% if permitted_to?(:show, :attachments) %> <%= link_to( attachment.name, alchemy.admin_attachment_path(attachment), :target => '_blank', :title => _t('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, :format => :short) %></td> <td class="tools long"> <% permitted_to?(:download, :alchemy_attachments) do %> <%= link_to( "", alchemy.download_admin_attachment_path(attachment), :title => _t("download_file", :filename => attachment.filename), :class => "icon file_download" ) %> <% end %> <% permitted_to?(:destroy, :alchemy_admin_attachments) do %> <%= link_to_confirmation_window( "", _t("confirm_to_delete_file"), alchemy.admin_attachment_path( :id => attachment, :query => params[:query], :page => params[:page], :per_page => params[:per_page] ), { :class => 'icon file_delete', :title => _t('delete_file') } ) %> <% end %> <% permitted_to?(:edit, :alchemy_admin_attachments) do %> <%= link_to_overlay_window("", alchemy.edit_admin_attachment_path(attachment, :query => params[:query], :page => params[:page]), { :title => _t('rename_file'), :size => '380x220' }, :class => 'icon file_edit', :title => _t('rename_file') ) %> <% end %> </td> </tr>
Version data entries
9 entries across 9 versions & 1 rubygems