Sha256: 0e83c57776e63e44de29b29855e3a93162780d128403fd40e079e6cf36d26a87

Contents?: true

Size: 849 Bytes

Versions: 11

Compression:

Stored size: 849 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(CGI.escape(bm.document_id)) %></td>
    	<td><%= button_to 'Remove', {:controller => "bookmarks", :action => "destroy", :id => CGI.escape(bm.document_id)}, 
	  :method => :delete, :confirm => 'Remove this bookmark?' %></td>
      </tr>
      <% end %>
    </table>
  </div>

<% end %>
  

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-3.4.2 app/views/bookmarks/index.html.erb
blacklight-3.4.1 app/views/bookmarks/index.html.erb
blacklight-3.4.0 app/views/bookmarks/index.html.erb
blacklight-3.3.2 app/views/bookmarks/index.html.erb
blacklight-3.3.1 app/views/bookmarks/index.html.erb
blacklight-3.3.0 app/views/bookmarks/index.html.erb
blacklight-3.2.2 app/views/bookmarks/index.html.erb
blacklight-3.2.1 app/views/bookmarks/index.html.erb
blacklight-3.2.0 app/views/bookmarks/index.html.erb
blacklight-3.2.0pre2 app/views/bookmarks/index.html.erb
blacklight-3.2.0pre1 app/views/bookmarks/index.html.erb