Sha256: afc332e0d1ba31ee6901f448b3255f4a63893217ddc94581b9fda72f62bd1903
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
<%- # we don't use the per-form csrf token -%> <%= form_tag(bookmark_path, authenticity_token: false, method: bookmarked? ? :delete : :put, class: "bookmark-toggle", data: { present: t('blacklight.search.bookmarks.present'), absent: t('blacklight.search.bookmarks.absent'), inprogress: t('blacklight.search.bookmarks.inprogress') }) do %> <div class="checkbox toggle-bookmark"> <label class="toggle-bookmark" data-checkboxsubmit-target="label"> <input type="checkbox" class="toggle-bookmark" data-checkboxsubmit-target="checkbox" <%= 'checked="checked"' if bookmarked? %>> <span data-checkboxsubmit-target="span"><%= bookmarked? ? t('blacklight.search.bookmarks.present') : t('blacklight.search.bookmarks.absent') %></span> </label> </div> <%= submit_tag(t(bookmarked? ? 'remove.button' : 'add.button', scope: 'blacklight.bookmarks'), class: "bookmark-#{bookmarked? ? 'remove' : 'add'} btn btn-outline-secondary") %> <% end %>
Version data entries
5 entries across 5 versions & 2 rubygems