Skip to content
Snippets Groups Projects

Add accessibility for CRC_1280 button in the dashboard.

Merged Gyan Gupta requested to merge feature/472_crc_1280_button_accessibility_in_dashboard into develop
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading