Sha256: ba4aa4774b71db6efff3391475f952a493b79ee2f09169da98e17f6334774ed6

Contents?: true

Size: 1.92 KB

Versions: 11

Compression:

Stored size: 1.92 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_overlay_window(
      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

11 entries across 11 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb
alchemy_cms-2.9.0 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb
alchemy_cms-2.8.3 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb
alchemy_cms-2.8.1 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb