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

Version Path
blacklight-7.26.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.25.3 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.25.2 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.25.1 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.25.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.24.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.23.0.1 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.23.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.22.2 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.22.1 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.22.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.21.2 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.21.1 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.21.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.20.1 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.20.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.19.2 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.19.1 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.19.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.18.1 app/components/blacklight/document/bookmark_component.html.erb