Sha256: 2b0d2560f7decea36adeeeabb9fc7120986b2e6eb8a0410f6c2e7b634bcb4549

Contents?: true

Size: 1.66 KB

Versions: 38

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

38 entries across 38 versions & 1 rubygems

Version Path
sufia-4.0.0.beta2 app/views/catalog/show.html.erb
sufia-4.0.0.beta1 app/views/catalog/show.html.erb
sufia-3.7.2 app/views/catalog/show.html.erb
sufia-3.7.1 app/views/catalog/show.html.erb
sufia-3.7.0 app/views/catalog/show.html.erb
sufia-3.6.1 app/views/catalog/show.html.erb
sufia-3.6.0 app/views/catalog/show.html.erb
sufia-3.5.0 app/views/catalog/show.html.erb
sufia-3.4.0 app/views/catalog/show.html.erb
sufia-3.4.0.rc4 app/views/catalog/show.html.erb
sufia-3.4.0.rc3 app/views/catalog/show.html.erb
sufia-3.3.1 app/views/catalog/show.html.erb
sufia-3.4.0.rc2 app/views/catalog/show.html.erb
sufia-3.4.0.rc1 app/views/catalog/show.html.erb
sufia-3.3.0 app/views/catalog/show.html.erb
sufia-3.2.1 app/views/catalog/show.html.erb
sufia-3.1.3 app/views/catalog/show.html.erb
sufia-3.1.2 app/views/catalog/show.html.erb
sufia-3.1.1 app/views/catalog/show.html.erb
sufia-3.1.0 app/views/catalog/show.html.erb