Sha256: 1c7103d8f1412513c2e964690f71eebc0cedc7dbd9a0f8bbc0cc719dfe8f6c32

Contents?: true

Size: 808 Bytes

Versions: 4

Compression:

Stored size: 808 Bytes

Contents

<h1>Bookmarks</h1>

<%- if current_user.blank? -%>
  
  <h2>Please log in to see your bookmarks.</h2>
  
<%- elsif @bookmarks.blank? -%>
  
  <h2>You have no bookmarks</h2>
  
<%- else -%>

  <%= will_paginate @bookmarks %>
  <div id="userBookmarks">
    <p>
      <%= link_to "Clear Bookmarks", clear_bookmarks_path, :method => :delete, :confirm => "Clear your bookmarks?" %>
    </p>
    
    <h2>Your Bookmarks</h2>
    
    <table class="zebra">
      <% @bookmarks.each do |bm| %>
      <tr>
    	<td><%= link_to h(bm.title), catalog_path(bm.document_id) %></td>
    	<td><%= button_to 'Remove', {:controller => "bookmarks", :action => "destroy", :id => bm.document_id}, 
	  :method => :delete, :confirm => 'Remove this bookmark?' %></td>
      </tr>
      <% end %>
    </table>
  </div>

<% end %>
  

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-3.0.0pre4 app/views/bookmarks/index.html.erb
blacklight-3.0.0pre3 app/views/bookmarks/index.html.erb
blacklight-3.0pre2 app/views/bookmarks/index.html.erb
blacklight-3.0pre1 app/views/bookmarks/index.html.erb