Skip to content

Commit

Permalink
Adding edit link from BL details
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Feb 4, 2016
1 parent 65c9b77 commit 9aa0238
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/views/catalog/_previous_next_doc.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<% #Using the Bootstrap Pagination class -%>
<% #DEPRECATED - using id="previousNextDocument" as a selector is deprecated and will be removed in Blacklight 6.0 %>
<div id='previousNextDocument' class='pagination-search-widgets'>
<% if @previous_document || @next_document %>
<div class="page_links">
<%= link_to_previous_document @previous_document %> |
<%= item_page_entry_info %> |
<%= link_to_next_document @next_document %>
</div>
<% end %>
<% if current_search_session %>
<div class="pull-right search-widgets">
<%= link_back_to_catalog class: 'btn' %>
<%=link_to t('blacklight.search.start_over'), start_over_path(current_search_session.try(:query_params) || {}), id: 'startOverLink', class: 'btn' %>
<%=link_to t('active_admin.edit'), "/admin/sources/#{@document.id.split(" ")[1]}/edit", class: 'btn' %>
</div>
<% end %>
</div>

0 comments on commit 9aa0238

Please sign in to comment.