Sha256: 6c6096966ccdf04ba73a29ad6879021093743bb409a3fa0036e8468d393347b0

Contents?: true

Size: 1.21 KB

Versions: 16

Compression:

Stored size: 1.21 KB

Contents

<%- if @clipboard_items.blank? -%>
<%= render_message do %>
  <%= Alchemy.t('No items in your clipboard') %>
<% end %>
<%- else -%>
<div id="clipboard_items">
  <ul>
    <%- @clipboard_items.each do |item| -%>
    <% item_class = item.class.name.demodulize.underscore.pluralize %>
    <li id="clipboard_item_<%= item.id -%>" class="<%= item_class -%>">
      <% if item_class == 'pages' %>
        <%= render_icon(:file) %>
        <%= truncate(item.name, length: 50) %>
      <% else %>
        <%= render_icon(:draggable, style: nil) %>
        <%= truncate(item.display_name_with_preview_text(50), length: 50) %>
      <% end %>
      <span class="float_right">
        <%= link_to render_icon(:close, size: '1x'),
          alchemy.remove_admin_clipboard_path(remarkable_type: item_class, remarkable_id: item.id),
          remote: true, method: 'delete',
          title: Alchemy.t('Remove item from clipboard') %>
      </span>
    </li>
    <%- end -%>
  </ul>
  <p>
    <%= link_to_confirm_dialog Alchemy.t('clear clipboard'),
      Alchemy.t('Do you really want to clear the clipboard?'),
      alchemy.clear_admin_clipboard_path(remarkable_type: params[:remarkable_type]),
      class: 'button' %>
  </p>
</div>
<%- end -%>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
alchemy_cms-7.1.12 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.8 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.7 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.6 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.5 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.4 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.3 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.2 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.1 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.0 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.0.pre.rc1 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.0.pre.b2 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-7.1.0.pre.b1 app/views/alchemy/admin/clipboard/index.html.erb