Skip to content
Snippets Groups Projects
Commit f7e6fcc6 authored by Kapil Patel's avatar Kapil Patel
Browse files

Modify breadcrumb for CRC 1280 datasets

parent bbee3ce4
1 merge request!229Modify breadcrumb for CRC 1280 Datasets
Pipeline #10250 failed
......@@ -103,5 +103,18 @@ module Hyrax
flash[:notice] = "You need to navigate to your group to create an experiment."
redirect_to dashboard_collection_path(collection.id)
end
def build_breadcrumbs
return super if ['show', 'edit'].exclude?(action_name)
group_colection_id = presenter.member_of_collection_ids.first
parent_group_colection = Collection.find(group_colection_id)
crc_1280_collection = parent_group_colection.parent_collections.first if parent_group_colection
add_breadcrumb t(:'hyrax.controls.home'), root_path
add_breadcrumb crc_1280_collection.title.first, dashboard_collection_path(crc_1280_collection.id) if crc_1280_collection.present?
add_breadcrumb parent_group_colection.title.first, dashboard_collection_path(parent_group_colection.id) if parent_group_colection.present?
add_breadcrumb_for_action
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment