Skip to content
Snippets Groups Projects
Commit 84e201dd authored by Johannes Frenzel's avatar Johannes Frenzel
Browse files

Merge branch 'feature/472_crc_1280_button_accessibility_in_dashboard' into 'develop'

Add  accessibility for CRC_1280 button in the dashboard.

See merge request !367
parents 5099cf4d b55a3eb2
No related branches found
No related tags found
1 merge request!367Add accessibility for CRC_1280 button in the dashboard.
Pipeline #19549 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment