Sha256: be2667a2a67d993d10a3dd03e8603fef2a79268c0ab496d1d3e92a0b78f004b5
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
module FcrepoAdmin::Helpers module FcrepoAdminHelperBehavior def object_context_nav_items items = [] items << [t("fcrepo_admin.object.nav.items.summary"), fcrepo_admin.object_path(@object)] if object_is_auditable? items << [t("fcrepo_admin.object.nav.items.audit_trail"), fcrepo_admin.audit_trail_object_path(@object)] end items end def object_context_nav_header t("fcrepo_admin.object.nav.header") end def render_object_context_nav render :partial => 'fcrepo_admin/shared/context_nav', :locals => {:header => object_context_nav_header, :items => object_context_nav_items} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fcrepo_admin-0.3.5 | lib/fcrepo_admin/helpers/fcrepo_admin_helper_behavior.rb |
fcrepo_admin-0.3.4 | lib/fcrepo_admin/helpers/fcrepo_admin_helper_behavior.rb |