Sha256: 655f1ff16435815c2fd21405deb3fbd699a95b6fbe649316c28ccd8c2d677b31

Contents?: true

Size: 1.45 KB

Versions: 6

Compression:

Stored size: 1.45 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)),
    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

6 entries across 6 versions & 1 rubygems

Version Path
alchemy_cms-3.3.3 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.3.2 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.3.1 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.3.0 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.3.0.rc2 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-3.3.0.rc1 app/views/alchemy/admin/pictures/_picture.html.erb