Sha256: 24bd61af128b772010e0c9b5abdeda090d307ff5c58c5b18aca5985cad9f41a1

Contents?: true

Size: 1.42 KB

Versions: 7

Compression:

Stored size: 1.42 KB

Contents

<div class="picture_thumbnail <%= @size %>" id="picture_<%= picture.id %>" name="<%= picture.name %>">
  <%- permitted_to?(:destroy, :alchemy_admin_pictures) do -%>
  <span class="picture_tool_delete">
    <%= link_to_confirmation_window(
      "",
      t("confirm_to_delete_image_from_server"),
      alchemy.admin_picture_path(
        :id => picture,
        :query => params[:query],
        :page => params[:page],
        :per_page => params[:per_page]
      ),
      {
        :title => t('Delete image')
      }
    ) -%>
  </span>
  <%- end -%>
  <div class="image_spinner spinner">
    <%= image_tag("alchemy/image_loader.gif", :alt => '') %>
  </div>
  <%= link_to_function(
    image_tag(
      alchemy.thumbnail_path(:id => picture, :size => @size),
      :alt => picture.name,
      :title => t('zoom_image'),
      :onload => "Alchemy.fadeImage(this, '#picture_#{picture.id} .image_spinner');",
      :style => "display: none;"
    ),
    "Alchemy.zoomImage('#{show_in_window_admin_picture_path(picture.id)}', '#{picture.name}', #{picture.image_width || 320}, #{picture.image_height || 240})",
    :class => 'thumbnail_background'
  ) %>
  <span class="picture_name<%= ' rename' if permitted_to?(:edit, :alchemy_admin_pictures) -%>" title="<%= permitted_to?(:edit, :alchemy_admin_pictures) ? picture.name + ' (' + t('Click to rename') + ')' : picture.name %>" id="image_picture_<%= picture.id %>_name"><%= picture.name %></span>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc11 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.2.rc8 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.2.rc7 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.2.rc6 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.2.rc3 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.2.rc2 app/views/alchemy/admin/pictures/_picture.html.erb
alchemy_cms-2.2.rc1 app/views/alchemy/admin/pictures/_picture.html.erb