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