Sha256: da2d4917d46ac0dc1f70b2dd1e0e60d4e0f34c6c90e1cad5f7c56e8ea8258b4e

Contents?: true

Size: 1.91 KB

Versions: 1

Compression:

Stored size: 1.91 KB

Contents

<div id="image_assign_filter_and_image_sizing">
  <div class="button_with_label">
    <%= link_to(
      render_icon('zoom-out'),
      alchemy.admin_pictures_path({
        size: "small",
        content_id: @content,
        element_id: @element,
        swap: @swap,
        query: params[:query],
        options: @options.to_json
      }),
      remote: true,
      title: _t(:small_thumbnails),
      class: "icon_button"
    ) %>
    <%= link_to(
      render_icon('zoom-equal'),
      alchemy.admin_pictures_path({
        size: "medium",
        content_id: @content,
        element_id: @element,
        swap: @swap,
        query: params[:query],
        options: @options.to_json
      }),
      remote: true,
      title: _t(:medium_thumbnails),
      class: "icon_button"
    ) %>
    <%= link_to(
      render_icon('zoom-in'),
      alchemy.admin_pictures_path({
        size: "large",
        content_id: @content,
        element_id: @element,
        swap: @swap,
        query: params[:query],
        options: @options.to_json
      }),
      remote: true,
      title: _t(:big_thumbnails),
      class: "icon_button"
    ) %>
    <label><%= _t('Image size') %></label>
    <%= hidden_field_tag('size', @size, id: 'overlay_thumbnails_size') %>
  </div>
  <div class="toolbar_spacer"></div>
  <div class="button_with_label">
    <%= link_to_dialog(
      render_icon('upload'),
      alchemy.new_admin_picture_path(
        element_id: @element.blank? ? nil : @element.id,
        content_id: @content.blank? ? nil : @content.id,
        swap: @swap,
        page: params[:page],
        size: @size,
        options: @options.to_json
      ),
      {
        size: "540x550",
        title: _t(:upload_image)
      },
      {
        class: 'icon_button',
        title: _t(:upload_image)
      }
    ) %>
    <label><%= _t(:upload_image) %></label>
  </div>
  <%= render partial: 'alchemy/admin/partials/remote_search_form' %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alchemy_cms-3.0.0.rc5 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb