Sha256: 52adcf3996ba8a275acd584b0b10ffe3fa3289572d186c3ce505a6afe5dfd8a6

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 KB

Contents

<% unless ds_is_current_version? %>
  <li>
	<%= render :partial => 'version', :locals => {:datastream => datastream} %>
  </li>
  <li>
	<%= link_to t("fcrepo_admin.nav.items.current_version"), fcrepo_admin.object_datastream_path(object, datastream.dsid) %>
  </li>
<% end %>
<li>
  <%= link_to_unless_current t("fcrepo_admin.datastream.nav.items.summary"), fcrepo_admin.object_datastream_path(object, datastream.dsid, datastream_params) %>
</li>
<% unless datastream.new? %>
  <% if ds_content_is_text? %>
    <li>
	  <%= link_to_unless_current t("fcrepo_admin.datastream.nav.items.content"), fcrepo_admin.content_object_datastream_path(object, datastream.dsid, datastream_params) %>
    </li>
  <% end %>
  <li>
    <%= link_to t("fcrepo_admin.datastream.nav.items.download"), fcrepo_admin.download_object_datastream_path(object, datastream.dsid, datastream_params) %>
  </li>
<% end %>
<% if ds_is_current_version? %>
  <% if ds_content_is_editable? && can?(:edit, object) %>
    <li>
      <%= link_to_unless_current t("fcrepo_admin.datastream.nav.items.edit"), fcrepo_admin.edit_object_datastream_path(object, datastream.dsid) %>
	</li>
  <% end %>
  <% if can?(:upload, object) %>
    <li>
	  <%= link_to_unless_current t("fcrepo_admin.datastream.nav.items.upload"), fcrepo_admin.upload_object_datastream_path(object, datastream.dsid) %>
    </li>
  <% end %>
<% end %>
<% unless datastream.new? %>
  <li>
    <%= link_to_unless_current t("fcrepo_admin.datastream.nav.items.history"), fcrepo_admin.history_object_datastream_path(object, datastream.dsid) %>
  </li>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fcrepo_admin-0.4.1 app/views/fcrepo_admin/datastreams/_context_nav_items.html.erb