Sha256: 24307169b527920c530b60b91a5939ae3eb26df75ef92bdabd9d5ccffee44077
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
<h1><%= t('blacklight.bookmarks.title') %></h1> <%- if current_or_guest_user.blank? -%> <h2><%= t('blacklight.bookmarks.need_login') %></h2> <%- elsif @bookmarks.blank? -%> <h2><%= t('blacklight.bookmarks.no_bookmarks') %></h2> <%- else -%> <%= paginate @bookmarks, :theme => 'blacklight' %> <div id="userBookmarks"> <p> <%= link_to t('blacklight.bookmarks.clear.action_title'), clear_bookmarks_path, :method => :delete, :data => { :confirm => t('blacklight.bookmarks.clear.action_confirm') } %> </p> <h2><%= t('blacklight.bookmarks.list_title') %></h2> <table class="zebra"> <% @bookmarks.each do |bm| %> <tr> <td><%= link_to h(bm.title), polymorphic_path(bm.document) %></td> <td><%= button_to t('blacklight.bookmarks.delete'), {:controller => "bookmarks", :action => "destroy", :id => CGI.escape(bm.document_id)}, :method => :delete, :data => { :confirm => t('blacklight.bookmarks.remove.action_confirm') } %></td> </tr> <% end %> </table> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blacklight-3.7.2 | app/views/bookmarks/index.html.erb |
blacklight-3.7.1 | app/views/bookmarks/index.html.erb |
blacklight-3.7.0 | app/views/bookmarks/index.html.erb |