Sha256: 68c126682af74ad9abdf3897588837c1ae82495d5aa14375faf9919f12f46244

Contents?: true

Size: 1.9 KB

Versions: 4

Compression:

Stored size: 1.9 KB

Contents

<div class="tabbable">
  <ul class="nav nav-tabs">
    <li class="active"><a href="#tab-datastreams" data-toggle="tab"><%= t("fcrepo_admin.object.tabs.datastreams") %></a></li>
    <li><a href="#tab-properties" data-toggle="tab"><%= t("fcrepo_admin.object.tabs.properties") %></a></li>
    <li><a href="#tab-permissions" data-toggle="tab"><%= t("fcrepo_admin.object.tabs.permissions") %></a></li>
  </ul>
  <div class="tab-content">
    <div class="tab-pane active" id="tab-datastreams">
	  <%= render :partial => 'fcrepo_admin/datastreams/datastreams', :locals => {:datastreams => @object.datastreams} %>
    </div>
    <div class="tab-pane" id="tab-properties">
	  <%= render 'properties' %>
    </div>
    <div class="tab-pane" id="tab-permissions">
	<% if object_has_permissions? %>
      <h4>Direct Permissions</h4>
	  <%= render :partial => 'permissions', :locals => {:permissions => @object.permissions} %>
	  <h4>Inherited Permissions</h4>
	  <% unless admin_policy_enforcement_enabled? %>
	    <p class="alert">
		  <%= t("fcrepo_admin.object.apo.enforcement_disabled") %>.
	    </p>
	  <% end %>
	  <% if object_model_belongs_to_apo? %>
	    <p>
		  <%= t("fcrepo_admin.object.apo.governed_by") %>: 
		  <% if object_has_admin_policy? %>
		    <%= link_to object_admin_policy.pid, fcrepo_admin.object_path(object_admin_policy) %>
	      <% else %>
		    <span class="label"><%= t("fcrepo_admin.object.apo.not_assigned") %></span>
		  <% end %>
	    </p>
		<% if object_has_inherited_permissions? %>
	      <%= render :partial => 'permissions', :locals => {:permissions => object_inherited_permissions} %>
		<% end %>
	  <% else %>
	    <p class="alert alert-info">
		  <%= t("fcrepo_admin.object.apo.relationship_undefined") %>: <%= object_type %>.
	    </p>
	  <% end %>
    <% else %>
	  <%= t("fcrepo_admin.object.permissions.not_supported") %>: <%= object_type %>.
	<% end %>
    </div> <!-- /tab-permissions -->
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fcrepo_admin-0.3.5 app/views/fcrepo_admin/objects/show.html.erb
fcrepo_admin-0.3.4 app/views/fcrepo_admin/objects/show.html.erb
fcrepo_admin-0.3.3 app/views/fcrepo_admin/objects/show.html.erb
fcrepo_admin-0.3.2 app/views/fcrepo_admin/objects/show.html.erb