Sha256: c6235e96a06286b23cb9a5d7447accb53484a7582c7ec6ab72174e2d50edb54d

Contents?: true

Size: 1.66 KB

Versions: 17

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}, :confirm => 'Are you sure?', :method => :delete )%>
  </div>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
curate-0.6.3 app/views/catalog/show.html.erb
curate-0.6.1 app/views/catalog/show.html.erb
curate-0.6.0 app/views/catalog/show.html.erb
curate-0.5.6 app/views/catalog/show.html.erb
curate-0.5.5 app/views/catalog/show.html.erb
curate-0.5.4 app/views/catalog/show.html.erb
curate-0.5.2 app/views/catalog/show.html.erb
curate-0.5.1 app/views/catalog/show.html.erb
curate-0.5.0 app/views/catalog/show.html.erb
curate-0.4.2 app/views/catalog/show.html.erb
curate-0.3.2 app/views/catalog/show.html.erb
curate-0.3.1 app/views/catalog/show.html.erb
curate-0.2.0 app/views/catalog/show.html.erb
curate-0.1.3 app/views/catalog/show.html.erb
curate-0.1.2 app/views/catalog/show.html.erb
curate-0.1.1 app/views/catalog/show.html.erb
curate-0.1.0 app/views/catalog/show.html.erb