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