Sha256: b191cecde40a24c4faa9b42e5fa3f445fc6274b5089907a9c8def06b5683245e

Contents?: true

Size: 825 Bytes

Versions: 7

Compression:

Stored size: 825 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 -%>

<%= paginate @bookmarks, :theme => 'blacklight' %>
  <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

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-3.1.2 app/views/bookmarks/index.html.erb
blacklight-3.1.1 app/views/bookmarks/index.html.erb
blacklight-3.1.0 app/views/bookmarks/index.html.erb
blacklight-3.0.0 app/views/bookmarks/index.html.erb
blacklight-3.0.0pre8 app/views/bookmarks/index.html.erb
blacklight-3.0.0pre7 app/views/bookmarks/index.html.erb
blacklight-3.0.0pre6 app/views/bookmarks/index.html.erb