Sha256: b42015bb307a9ef743e2fc0b9a2b0fee8d91ac74260d390485a942405f00d700

Contents?: true

Size: 1.93 KB

Versions: 17

Compression:

Stored size: 1.93 KB

Contents

<tr class="<%= cycle('even', 'odd') %>">
  <td class="icon">
    <%= render_icon attachment.icon_css_class %>
  </td>
  <td class="name">
  <% if permitted_to?(:show, :alchemy_attachments) && %w(audio image video flash pdf text).include?(attachment.icon_css_class) %>
    <%= link_to_overlay_window(
      attachment.name,
      alchemy.admin_attachment_path(attachment),
      {
        :title => attachment.name,
        :size => "fullscreen"
      },
      {
        :title => _t('View File')
      }
    ) %>
  <% else %>
    <%= attachment.name %>
  <% end %>
  </td>
  <td class="file_name"><%= attachment.file_name %></td>
  <td class="file_type"><%= mime_to_human(attachment.file_mime_type) %></td>
  <td class="file_size"><%= number_to_human_size(attachment.file_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.file_name),
      :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

17 entries across 17 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.9.0 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.8.3 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.6.3 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.8.1 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.6.2.1 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.6.2 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.6.1 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.6.0 app/views/alchemy/admin/attachments/_attachment.html.erb
alchemy_cms-2.6.0.rc5 app/views/alchemy/admin/attachments/_attachment.html.erb