Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RDMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
researchdata
RDMS
Commits
f7e6fcc6
Commit
f7e6fcc6
authored
1 year ago
by
Kapil Patel
Browse files
Options
Downloads
Patches
Plain Diff
Modify breadcrumb for CRC 1280 datasets
parent
bbee3ce4
Branches
changes/294_modify_breadcrumb_for_crc_1280_datasets
No related tags found
1 merge request
!229
Modify breadcrumb for CRC 1280 Datasets
Pipeline
#10250
failed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hyrax/app/controllers/hyrax/crc_datasets_controller.rb
+13
-0
13 additions, 0 deletions
hyrax/app/controllers/hyrax/crc_datasets_controller.rb
with
13 additions
and
0 deletions
hyrax/app/controllers/hyrax/crc_datasets_controller.rb
+
13
−
0
View file @
f7e6fcc6
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment