Sha256: bd081b1b533ad2ffa2a1c2985e7345c106f9f4152e1333495a63519ac6548449

Contents?: true

Size: 1.04 KB

Versions: 31

Compression:

Stored size: 1.04 KB

Contents

<%- if @clipboard_items.blank? -%>
<div class="info">
  <%= render_icon('info') %>
  <%= Alchemy.t('No items in your clipboard') %>
</div>
<%- 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 -%>">
      <%= render_icon("clipboard_#{item_class}") %>
      <%= item.class.to_s == 'Alchemy::Element' ? item.display_name_with_preview_text(60) : item.name %>
      <span class="float_right"><%= link_to(render_icon('delete-small'), 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

31 entries across 31 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-3.6.7 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-3.6.6 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-4.0.5 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-4.0.4 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-4.0.3 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-3.6.5 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-4.0.2 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-4.0.1 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-3.6.4 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-4.0.0 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-3.6.3 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-3.6.2 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-4.0.0.rc2 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-4.0.0.rc1 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-3.6.1 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-4.0.0.beta app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-3.6.0 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-3.5.0 app/views/alchemy/admin/clipboard/index.html.erb
alchemy_cms-3.4.2 app/views/alchemy/admin/clipboard/index.html.erb