Sha256: 45802cbe1f85468a3785ae2731ffabdca47dc69c13c11d504127789729930fb9
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 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, :confirm => t('blacklight.bookmarks.remove.action_confirm') %></td> </tr> <% end %> </table> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-3.5.0 | app/views/bookmarks/index.html.erb |