% @page_title = t('blacklight.bookmarks.title') + ' - ' + application_name %>
<%= javascript_include_tag 'commonwealth-vlr-engine/folder_tools' %>
<% if current_user %>
-
<%= link_to(t('blacklight.users.account_heading'), current_user) %>
<%= t('blacklight.breadcrumb.separator') %>
<% end %>
-
<%= link_to(t('blacklight.folders.list_title'), folders_path) %>
<%= t('blacklight.breadcrumb.separator') %>
-
<%= t('blacklight.bookmarks.title') %>
<%= t('blacklight.bookmarks.title') %>
<% unless !current_or_guest_user || @document_list.blank? %>
<%# link_to(content_tag(:span,'',:class=>'glyphicon glyphicon-remove') + ' ' + t('blacklight.folder_items.clear.action'),
clear_bookmarks_path,
:id => 'remove_all_link',
:class => 'btn btn-default btn-sm',
:method => :delete,
:data => { :confirm => t('blacklight.folder_items.clear.confirm') }) %>
<% end %>
<%= t('blacklight.bookmarks.description') %>
<%- if current_or_guest_user.blank? -%>
<%= t('blacklight.bookmarks.need_login') %>
<%- elsif @document_list.blank? -%>
<%= t('blacklight.bookmarks.no_bookmarks') %>
<%= t('blacklight.folders.help.add_items') %>
<% else %>
<%= render 'sort_and_per_page' %>
<%= form_tag selected_bookmarks_actions_path, :method => :put, :id => "item_actions_form" do %>
<%= render :partial => 'shared/folder_item_actions' %>
<%= render_document_index %>
<% end %>
<%= render 'results_pagination' %>
<% end %>