Sha256: bf723040046468722e5dd0a1ee432044414c1a0646a4661c5651b70ff020207c

Contents?: true

Size: 1.9 KB

Versions: 2

Compression:

Stored size: 1.9 KB

Contents

<div id="library_sidebar">
  <%= render 'filter_bar' %>

  <% if Alchemy::Picture.tag_counts.any? %>
    <div class="tag-list with_filter_bar<%= ' filtered' if search_filter_params[:tagged_with].present? %>">
      <%= render 'tag_list' %>
    </div>
  <% end %>
</div>

<%= form_tag delete_multiple_admin_pictures_path, method: :delete do %>
  <div class="selected_item_tools">
    <h2><%= Alchemy.t(:edit_selected_pictures) %></h2>
    <%= link_to(
      render_icon(:edit, size: 'xs') + Alchemy.t("Edit"),
      edit_multiple_admin_pictures_path,
      class: 'button with_icon',
      title: Alchemy.t('Edit multiple pictures'),
      id: 'edit_multiple_pictures',
      style: 'float: none'
    ) %>
    <%= button_tag render_icon(:minus, size: 'xs') + Alchemy.t("Delete"), 'data-alchemy-confirm' => {
      title: Alchemy.t(:please_confirm),
      message: Alchemy.t(:confirm_to_delete_images_from_server),
      ok_label: Alchemy.t("Yes"),
      cancel_label: Alchemy.t("No")
    }.to_json, class: 'button with_icon' %>
    &nbsp;<%= Alchemy.t(:or) %>&nbsp;
    <%= link_to(
      render_icon(:times, size: 'xs') + Alchemy.t("Clear selection"),
      admin_pictures_path(
        q: search_filter_params[:q],
        tagged_with: search_filter_params[:tagged_with],
        size: params[:size],
        filter: search_filter_params[:filter]
      ),
      class: 'secondary button with_icon',
      style: 'float: none'
    ) %>
  </div>
  <div id="pictures">
  <% if @pictures.blank? and @recent_pictures.blank? and search_filter_params[:q].blank? %>
    <%= render_message do %>
      <%= Alchemy.t(:no_images_in_archive) %>
    <% end %>
  <% elsif @pictures.blank? and @recent_pictures.blank? %>
    <%= render_message do %>
      <%= Alchemy.t(:no_search_results) %>
    <% end %>
  <% else %>
    <%= render partial: 'picture', collection: @pictures %>
    <%= paginate @pictures, theme: 'alchemy' %>
  <% end %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alchemy_cms-4.1.0.rc1 app/views/alchemy/admin/pictures/_archive.html.erb
alchemy_cms-4.1.0.beta app/views/alchemy/admin/pictures/_archive.html.erb