Sha256: caaabe955d7d30a95a1bc332ec7cd2f10a488d13ff2dab1062423e30c078a806

Contents?: true

Size: 1.51 KB

Versions: 4

Compression:

Stored size: 1.51 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(
    alchemy.thumbnail_path(
      id: picture,
      size: @size,
      sh: picture.security_token(size: @size),
      format: picture.image_file_format
    ),
    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

4 entries across 4 versions & 1 rubygems

Version Path
alchemy_cms-3.4.2 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.4.1 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.4.0 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.4.0.rc1 app/views/alchemy/admin/pictures/_picture.html.erb