Sha256: bd3b9b0f0f6bd67752f90a84bfc781422c270bc85e185bc392b145a8c5cea54a

Contents?: true

Size: 1.66 KB

Versions: 3

Compression:

Stored size: 1.66 KB

Contents

<%-
  doc_title = document_show_html_title.blank? ? @document[:id] : document_show_html_title.first
  @page_title = "#{doc_title} - #{application_name}"
-%>
<div id="showHead">
  <div id="showUtils">
    <span class="back_to_cat"><%= link_back_to_catalog :label=>'← Return to search results' %></span>
    <%- if @previous_document || @next_document -%>
      <div id="previousNextDocument">
      <span class="previous"><%= link_to_previous_document(@previous_document) %></span>
    <%- end -%>
    <%- if session[:search][:counter].to_i > 0 -%>
      <span class="result-num">
        <%= session[:search][:counter].to_i %> of <%= format_num(session[:search][:total]) %>
      </span>
    <%- end -%>
    <%- if @previous_document || @next_document -%>
      <span class="next"><%= link_to_next_document(@next_document)%></span>
      </div>
    <%- end -%>
    <%- if editor? && controller.action_name != "delete" -%>
      <span class="edit-browse">
        <%= edit_and_browse_links %>
      </span>
    <%- end -%>
  </div>
</div>
<div id="document" class="<%= controller.action_name == "edit" ? "document_edit" : "document_show" %> <%= "combined_document_view" if session[:scripts] %>">
  <div id="<%= format_pid(@document[:id]) %>">
    <%= "<h1>Add Your Work</h1>".html_safe if controller.action_name == "edit" %>
    <div class="document">
      <%= render_document_partial @document, params["action"] %>
    </div>
  </div>
</div>
<% if controller.action_name == "edit" %>
  <div class="delete-asset">
    <%= button_to("Delete This Item", { action: :destroy, controller: :assets, id: @document_fedora.pid }, data: { confirm: 'Are you sure?' } , method: :delete )%>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
curate-0.6.6 app/views/catalog/show.html.erb
curate-0.6.5 app/views/catalog/show.html.erb
curate-0.6.4 app/views/catalog/show.html.erb