Sha256: 06d36c179c4d56bc191540bb93b5bf2bea0705d7edf0cb2c1698b32a0588d27e
Contents?: true
Size: 772 Bytes
Versions: 55
Compression:
Stored size: 772 Bytes
Contents
<%- # the data-doc-id attribute is used by our JS that converts to a checkbox/label. -%> <%= form_tag(bookmark_path, method: bookmarked? ? :delete : :put, class: "bookmark-toggle", data: { 'doc-id' => @document.id, present: t('blacklight.search.bookmarks.present'), absent: t('blacklight.search.bookmarks.absent'), inprogress: t('blacklight.search.bookmarks.inprogress') }) do %> <%= submit_tag(t(bookmarked? ? 'remove.button' : 'add.button', scope: 'blacklight.bookmarks'), id: "bookmark_toggle_#{@document.id.to_s.parameterize}", class: "bookmark-#{bookmarked? ? 'remove' : 'add'} btn btn-outline-secondary") %> <% end %>
Version data entries
55 entries across 55 versions & 2 rubygems