Sha256: 0fb63dbb88705976e6bd0851b793c44fee50f77e5bc0f8ebb02a8e4cc455cb4d
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
<h1><%= t('blacklight.bookmarks.title') %></h1> <%- if current_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-3.6.1.1 | app/views/bookmarks/index.html.erb |
blacklight-3.6.0 | app/views/bookmarks/index.html.erb |