Sha256: 764072173f84359cad4310b618da9033c552e81fd329e5b487ee1bba47ce5366

Contents?: true

Size: 1.41 KB

Versions: 21

Compression:

Stored size: 1.41 KB

Contents

<div class="picture_thumbnail <%= @size %>" id="picture_<%= picture.id %>" name="<%= picture.name %>">
  <span class="picture_tool select">
    <%= check_box_tag "picture_ids[]", picture.id %>
  </span>
  <% if picture.deletable? && can?(:destroy, picture) %>
  <span class="picture_tool delete">
    <%= link_to_confirm_dialog(
      "",
      Alchemy.t(:confirm_to_delete_image_from_server),
      alchemy.admin_picture_path(
        id: picture,
        q: params[:q],
        page: params[:page],
        tagged_with: params[:tagged_with],
        size: params[:size],
        filter: params[:filter]
      ),
      {
        title: Alchemy.t('Delete image')
      }
    ) -%>
  </span>
  <% end %>
  <% image = image_tag(
    picture.url(size: preview_size(@size), flatten: true),
    alt: picture.name,
    title: Alchemy.t(:zoom_image)
  ) %>
  <% if can?(:edit, picture) %>
    <%= link_to(
      image,
      alchemy.admin_picture_path(
        id: picture,
        q: params[:q],
        page: params[:page],
        tagged_with: params[:tagged_with],
        size: params[:size],
        filter: params[:filter]
      ),
      class: 'thumbnail_background'
    ) %>
  <% else %>
    <%= image %>
  <% end %>
  <span class="picture_name" title="<%= picture.name %>">
    <%= picture.name %>
  </span>
  <div class="picture_tags">
  <% picture.tag_list.each do |tag| %>
    <span class="tag"><%= tag %></span>
  <% end %>
  </div>
</div>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.6.7 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.6.6 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-4.0.5 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-4.0.4 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-4.0.3 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.6.5 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-4.0.2 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-4.0.1 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.6.4 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-4.0.0 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.6.3 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.6.2 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-4.0.0.rc2 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-4.0.0.rc1 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.6.1 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-4.0.0.beta app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.6.0 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.5.0 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.5.0.rc2 app/views/alchemy/admin/pictures/_picture.html.erb