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.40.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.39.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.38.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.37.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.36.2 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.36.1 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.36.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.35.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.34.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.33.1 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.33.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.32.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.31.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.30.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.29.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.28.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.27.1 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.27.0 app/components/blacklight/document/bookmark_component.html.erb
blacklight-7.26.1 app/components/blacklight/document/bookmark_component.html.erb