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
b55a3eb2
Commit
b55a3eb2
authored
2 months ago
by
Gyan Gupta
Browse files
Options
Downloads
Patches
Plain Diff
Add accessibility for CRC 1280 button in the dashboard.
parent
5099cf4d
Branches
feature/472_crc_1280_button_accessibility_in_dashboard
Branches containing commit
No related tags found
1 merge request
!367
Add accessibility for CRC_1280 button in the dashboard.
Pipeline
#19523
passed
2 months ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hyrax/app/helpers/hyrax_helper.rb
+4
-2
4 additions, 2 deletions
hyrax/app/helpers/hyrax_helper.rb
with
4 additions
and
2 deletions
hyrax/app/helpers/hyrax_helper.rb
+
4
−
2
View file @
b55a3eb2
...
...
@@ -219,8 +219,10 @@ module HyraxHelper
template
=
ERB
.
new
file_contents
parsed_file
=
YAML
.
load
(
template
.
result
(
binding
))
parsed_file
[
'collections_to_display'
].
each
do
|
collection_name
|
c
=
Collection
.
where
(
title:
collection_name
).
first
collections_to_display
.
append
({
id:
c
.
id
,
title:
c
.
title
&
.
first
,
url:
"/dashboard/collections/
#{
c
.
id
}
"
})
collection
=
Collection
.
where
(
title:
collection_name
).
first
next
unless
can?
:read
,
collection
collections_to_display
.
append
({
id:
collection
.
id
,
title:
collection
.
title
&
.
first
,
url:
"/dashboard/collections/
#{
collection
.
id
}
"
})
# collections_to_display.append({id: c.id, title: c.title&.first, url: dashboard_collection_path(c.id)})
end
collections_to_display
...
...
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