hyrax 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +3 -0
  3. data/README.md +2 -2
  4. data/app/assets/stylesheets/hyrax/_proxy-rights.scss +7 -1
  5. data/app/presenters/hyrax/admin/users_presenter.rb +6 -0
  6. data/app/presenters/hyrax/collapsable_section_presenter.rb +1 -1
  7. data/app/views/_logo.html.erb +1 -1
  8. data/app/views/_user_util_links.html.erb +3 -3
  9. data/app/views/catalog/_search_form.html.erb +3 -1
  10. data/app/views/catalog/_thumbnail_list_collection.html.erb +1 -1
  11. data/app/views/hyrax/admin/admin_sets/_show_actions.html.erb +3 -3
  12. data/app/views/hyrax/admin/admin_sets/edit.html.erb +1 -1
  13. data/app/views/hyrax/admin/admin_sets/index.html.erb +2 -2
  14. data/app/views/hyrax/admin/admin_sets/new.html.erb +1 -1
  15. data/app/views/hyrax/admin/admin_sets/show.html.erb +2 -2
  16. data/app/views/hyrax/admin/appearances/show.html.erb +1 -1
  17. data/app/views/hyrax/admin/collection_types/edit.html.erb +1 -1
  18. data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
  19. data/app/views/hyrax/admin/collection_types/new.html.erb +1 -1
  20. data/app/views/hyrax/admin/features/index.html.erb +1 -1
  21. data/app/views/hyrax/admin/users/index.html.erb +12 -8
  22. data/app/views/hyrax/admin/workflow_roles/index.html.erb +1 -1
  23. data/app/views/hyrax/base/_form_files.html.erb +6 -6
  24. data/app/views/hyrax/base/_show_actions.html.erb +13 -16
  25. data/app/views/hyrax/base/edit.html.erb +1 -1
  26. data/app/views/hyrax/collections/_list_works.html.erb +1 -1
  27. data/app/views/hyrax/collections/_media_display.html.erb +1 -1
  28. data/app/views/hyrax/content_blocks/edit.html.erb +1 -1
  29. data/app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb +5 -3
  30. data/app/views/hyrax/dashboard/collections/_form_branding.html.erb +6 -6
  31. data/app/views/hyrax/dashboard/collections/_list_works.html.erb +1 -1
  32. data/app/views/hyrax/dashboard/collections/_show_document_list_menu.html.erb +2 -2
  33. data/app/views/hyrax/dashboard/collections/_work_action_menu.html.erb +2 -2
  34. data/app/views/hyrax/dashboard/collections/edit.html.erb +1 -1
  35. data/app/views/hyrax/dashboard/collections/new.html.erb +1 -1
  36. data/app/views/hyrax/dashboard/collections/show.html.erb +1 -1
  37. data/app/views/hyrax/dashboard/profiles/_edit_primary.html.erb +2 -2
  38. data/app/views/hyrax/dashboard/profiles/edit.html.erb +1 -1
  39. data/app/views/hyrax/dashboard/profiles/show.html.erb +1 -1
  40. data/app/views/hyrax/dashboard/sidebar/_activity.html.erb +5 -5
  41. data/app/views/hyrax/dashboard/sidebar/_configuration.html.erb +6 -6
  42. data/app/views/hyrax/dashboard/sidebar/_repository_content.html.erb +2 -2
  43. data/app/views/hyrax/dashboard/sidebar/_tasks.html.erb +4 -4
  44. data/app/views/hyrax/depositors/index.html.erb +1 -1
  45. data/app/views/hyrax/embargoes/index.html.erb +1 -1
  46. data/app/views/hyrax/file_sets/edit.html.erb +4 -4
  47. data/app/views/hyrax/homepage/index.html.erb +3 -3
  48. data/app/views/hyrax/my/_admin_set_action_menu.html.erb +4 -2
  49. data/app/views/hyrax/my/_collection_action_menu.html.erb +4 -3
  50. data/app/views/hyrax/my/_facet_layout.html.erb +1 -1
  51. data/app/views/hyrax/my/_facet_limit.html.erb +1 -1
  52. data/app/views/hyrax/my/_facet_pivot.html.erb +1 -1
  53. data/app/views/hyrax/my/_work_action_menu.html.erb +6 -4
  54. data/app/views/hyrax/my/collections/index.html.erb +1 -1
  55. data/app/views/hyrax/my/index.html.erb +1 -1
  56. data/app/views/hyrax/my/works/_list_works.html.erb +1 -1
  57. data/app/views/hyrax/my/works/index.html.erb +1 -1
  58. data/app/views/hyrax/pages/edit.html.erb +1 -1
  59. data/app/views/hyrax/transfers/index.html.erb +1 -1
  60. data/app/views/hyrax/transfers/new.html.erb +1 -1
  61. data/app/views/hyrax/users/_left_sidebar.html.erb +1 -1
  62. data/app/views/hyrax/users/_user_info.html.erb +9 -9
  63. data/app/views/hyrax/users/_vitals.html.erb +3 -3
  64. data/app/views/shared/_locale_picker.html.erb +2 -2
  65. data/config/locales/hyrax.de.yml +35 -0
  66. data/config/locales/hyrax.en.yml +29 -31
  67. data/config/locales/hyrax.es.yml +35 -0
  68. data/config/locales/hyrax.fr.yml +35 -0
  69. data/config/locales/hyrax.it.yml +35 -0
  70. data/config/locales/hyrax.pt-BR.yml +546 -511
  71. data/config/locales/hyrax.zh.yml +35 -0
  72. data/lib/hyrax/version.rb +1 -1
  73. data/spec/controllers/hyrax/homepage_controller_spec.rb +3 -2
  74. data/spec/factories/admin_sets.rb +1 -1
  75. data/spec/factories/admin_sets_lw.rb +7 -7
  76. data/spec/factories/api_items.rb +1 -1
  77. data/spec/factories/collection_branding_infos.rb +7 -7
  78. data/spec/factories/collection_type_participants.rb +2 -2
  79. data/spec/factories/collection_types.rb +28 -28
  80. data/spec/factories/collections.rb +14 -14
  81. data/spec/factories/collections_factory.rb +12 -12
  82. data/spec/factories/file_sets.rb +3 -3
  83. data/spec/factories/generic_works.rb +9 -9
  84. data/spec/factories/operations.rb +5 -5
  85. data/spec/factories/permission_template_accesses.rb +3 -3
  86. data/spec/factories/permission_templates.rb +10 -10
  87. data/spec/factories/single_use_links.rb +4 -4
  88. data/spec/factories/sipity_entities.rb +1 -1
  89. data/spec/factories/users.rb +4 -4
  90. data/spec/factories/workflow_actions.rb +1 -1
  91. data/spec/factories/workflow_states.rb +1 -1
  92. data/spec/features/batch_create_spec.rb +1 -1
  93. data/spec/features/create_work_spec.rb +3 -3
  94. data/spec/features/dashboard/collection_spec.rb +1 -1
  95. data/spec/forms/hyrax/forms/work_form_spec.rb +2 -2
  96. data/spec/forms/hyrax/generic_work_form_spec.rb +2 -2
  97. data/spec/presenters/hyrax/admin/users_presenter_spec.rb +16 -0
  98. data/spec/views/hyrax/admin/users/index.html.erb_spec.rb +32 -8
  99. data/spec/views/hyrax/base/edit.html.erb_spec.rb +1 -1
  100. data/template.rb +1 -1
  101. metadata +3 -3
@@ -28,12 +28,12 @@
28
28
 
29
29
  <li role="menuitem" tabindex="-1">
30
30
  <%= display_trophy_link @user, document.id do |text| %>
31
- <i class='glyphicon glyphicon-star'></i> <%= text %>
31
+ <i class="glyphicon glyphicon-star" aria-hidden="true"></i> <%= text %>
32
32
  <% end %>
33
33
  </li>
34
34
  <li role="menuitem" tabindex="-1">
35
35
  <%= link_to(hyrax.new_work_transfer_path(document.id), class: 'itemicon itemtransfer', title: 'Transfer Ownership of Work') do %>
36
- <i aria-hidden="true" class='glyphicon glyphicon-transfer'></i>
36
+ <i aria-hidden="true" class="glyphicon glyphicon-transfer"></i>
37
37
  <span> Transfer Ownership of Work </span>
38
38
  <% end %>
39
39
  </li>
@@ -1,7 +1,7 @@
1
1
  <% provide :page_title, construct_page_title( t('.header', type_title: @collection.collection_type.title, title: @form.title.first) ) %>
2
2
 
3
3
  <% provide :page_header do %>
4
- <h1><span class="fa fa-edit"></span><%= t('.header', type_title: @collection.collection_type.title, title: @form.title.first) %></h1>
4
+ <h1><span class="fa fa-edit" aria-hidden="true"></span><%= t('.header', type_title: @collection.collection_type.title, title: @form.title.first) %></h1>
5
5
  <% end %>
6
6
 
7
7
  <div class="row">
@@ -1,6 +1,6 @@
1
1
  <% provide :page_title, construct_page_title( t('.header', type_title: @collection.collection_type.title) ) %>
2
2
  <% provide :page_header do %>
3
- <h1><span class="fa fa-edit"></span> <%= t('.header', type_title: @collection.collection_type.title) %> </h1>
3
+ <h1><span class="fa fa-edit" aria-hidden="true"></span> <%= t('.header', type_title: @collection.collection_type.title) %> </h1>
4
4
  <% end %>
5
5
 
6
6
  <div class="row">
@@ -1,7 +1,7 @@
1
1
  <% provide :page_title, construct_page_title(@presenter.title) %>
2
2
 
3
3
  <% provide :page_header do %>
4
- <h1><span class="fa fa-file"></span> <%= t('.header') %></h1>
4
+ <h1><span class="fa fa-file" aria-hidden="true"></span> <%= t('.header') %></h1>
5
5
  <% end %>
6
6
 
7
7
  <div class="collections-wrapper">
@@ -33,14 +33,14 @@
33
33
  </div><!-- .form-group -->
34
34
 
35
35
  <div class="form-group">
36
- <%= f.label :twitter_handle, '<i class="fa fa-twitter"></i> Twitter Handle'.html_safe, class: 'col-xs-4 control-label' %>
36
+ <%= f.label :twitter_handle, '<i class="fa fa-twitter" aria-hidden="true"></i> Twitter Handle'.html_safe, class: 'col-xs-4 control-label' %>
37
37
  <div class="col-xs-8">
38
38
  <%= f.text_field :twitter_handle, class: "form-control" %>
39
39
  </div>
40
40
  </div><!-- .form-group -->
41
41
 
42
42
  <div class="form-group">
43
- <%= f.label :facebook_handle, '<i class="fa fa-facebook"></i> Facebook Handle'.html_safe, class: 'col-xs-4 control-label' %>
43
+ <%= f.label :facebook_handle, '<i class="fa fa-facebook" aria-hidden="true"></i> Facebook Handle'.html_safe, class: 'col-xs-4 control-label' %>
44
44
  <div class="col-xs-8">
45
45
  <%= f.text_field :facebook_handle, class: "form-control" %>
46
46
  </div>
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-id-card"></span> Edit Profile</h1>
2
+ <h1><span class="fa fa-id-card" aria-hidden="true"></span> Edit Profile</h1>
3
3
  <% end %>
4
4
  <div class="panel panel-default">
5
5
  <div class="panel-body">
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-id-card"></span> <%= t("hyrax.admin.sidebar.profile") %></h1>
2
+ <h1><span class="fa fa-id-card" aria-hidden="true"></span> <%= t("hyrax.admin.sidebar.profile") %></h1>
3
3
  <% if can? :edit, current_user %>
4
4
  <div class="pull-right">
5
5
  <%= link_to hyrax.edit_dashboard_profile_path(@user), class: "btn btn-primary" do %>
@@ -7,20 +7,20 @@
7
7
  open: menu.user_activity_section? do %>
8
8
  <%= menu.nav_link(hyrax.dashboard_profile_path(current_user),
9
9
  also_active_for: hyrax.edit_dashboard_profile_path(current_user)) do %>
10
- <span class="fa fa-id-card"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.profile') %></span>
10
+ <span class="fa fa-id-card" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.profile') %></span>
11
11
  <% end %>
12
12
 
13
13
  <%= menu.nav_link(hyrax.notifications_path) do %>
14
- <span class="fa fa-bell"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.notifications') %></span>
14
+ <span class="fa fa-bell" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.notifications') %></span>
15
15
  <% end %>
16
16
 
17
17
  <%= menu.nav_link(hyrax.transfers_path) do %>
18
- <span class="fa fa-arrows-h"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.transfers') %></span>
18
+ <span class="fa fa-arrows-h" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.transfers') %></span>
19
19
  <% end %>
20
20
 
21
21
  <% if Flipflop.proxy_deposit? %>
22
22
  <%= menu.nav_link(hyrax.depositors_path) do %>
23
- <span class="fa fa-users"></span> <span class="sidebar-action-text"><%= t('hyrax.dashboard.manage_proxies') %></span>
23
+ <span class="fa fa-users" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.dashboard.manage_proxies') %></span>
24
24
  <% end %>
25
25
  <% end %>
26
26
  <% end %>
@@ -28,6 +28,6 @@
28
28
 
29
29
  <% if can? :read, :admin_dashboard %>
30
30
  <%= menu.nav_link(hyrax.admin_stats_path) do %>
31
- <span class="fa fa-bar-chart"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.statistics') %></span>
31
+ <span class="fa fa-bar-chart" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.statistics') %></span>
32
32
  <% end %>
33
33
  <% end %>
@@ -7,30 +7,30 @@
7
7
  open: menu.settings_section? do %>
8
8
  <% if can?(:update, :appearance) %>
9
9
  <%= menu.nav_link(hyrax.admin_appearance_path) do %>
10
- <span class="fa fa-paint-brush"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.appearance') %></span>
10
+ <span class="fa fa-paint-brush" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.appearance') %></span>
11
11
  <% end %>
12
12
  <% end %>
13
13
  <% if can?(:manage, :collection_types) %>
14
14
  <%= menu.nav_link(hyrax.admin_collection_types_path) do %>
15
- <span class="fa fa-folder-open"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.collection_types') %></span>
15
+ <span class="fa fa-folder-open" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.collection_types') %></span>
16
16
  <% end %>
17
17
  <% end %>
18
18
  <% if can?(:manage, Hyrax::Feature) %>
19
19
  <%= menu.nav_link(hyrax.edit_pages_path) do %>
20
- <span class="fa fa-file-text-o"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.pages') %></span>
20
+ <span class="fa fa-file-text-o" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.pages') %></span>
21
21
  <% end %>
22
22
  <%= menu.nav_link(hyrax.edit_content_blocks_path) do %>
23
- <span class="fa fa-square-o"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.content_blocks') %></span>
23
+ <span class="fa fa-square-o" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.content_blocks') %></span>
24
24
  <% end %>
25
25
  <%= menu.nav_link(hyrax.admin_features_path) do %>
26
- <span class="fa fa-wrench"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.technical') %></span>
26
+ <span class="fa fa-wrench" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.technical') %></span>
27
27
  <% end %>
28
28
  <% end %>
29
29
  <% end %>
30
30
  </li>
31
31
  <% if can?(:manage, Sipity::WorkflowResponsibility) %>
32
32
  <%= menu.nav_link(hyrax.admin_workflow_roles_path) do %>
33
- <span class="fa fa-users"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.workflow_roles') %></span>
33
+ <span class="fa fa-users" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.workflow_roles') %></span>
34
34
  <% end %>
35
35
  <% end # end of configuration block %>
36
36
  <% end %>
@@ -2,10 +2,10 @@
2
2
 
3
3
  <%= menu.nav_link(hyrax.my_collections_path,
4
4
  also_active_for: hyrax.dashboard_collections_path) do %>
5
- <span class="fa fa-folder-open"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.collections') %></span>
5
+ <span class="fa fa-folder-open" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.collections') %></span>
6
6
  <% end %>
7
7
 
8
8
  <%= menu.nav_link(hyrax.my_works_path,
9
9
  also_active_for: hyrax.dashboard_works_path) do %>
10
- <span class="fa fa-file"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.works') %></span>
10
+ <span class="fa fa-file" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.works') %></span>
11
11
  <% end %>
@@ -1,22 +1,22 @@
1
1
  <% if can? :review, :submissions %>
2
2
  <li class="h5"><%= t('hyrax.admin.sidebar.tasks') %></li>
3
3
  <%= menu.nav_link(hyrax.admin_workflows_path) do %>
4
- <span class="fa fa-flag"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.workflow_review') %></span>
4
+ <span class="fa fa-flag" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.workflow_review') %></span>
5
5
  <% end %>
6
6
  <% end %>
7
7
 
8
8
  <% if can? :manage, User %>
9
9
  <%= menu.nav_link(hyrax.admin_users_path) do %>
10
- <span class="fa fa-user"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.users') %></span>
10
+ <span class="fa fa-user" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.users') %></span>
11
11
  <% end %>
12
12
  <% end %>
13
13
 
14
14
  <% if can? :read, :admin_dashboard %>
15
15
  <%= menu.nav_link(hyrax.embargoes_path) do %>
16
- <span class="fa fa-flag"></span> <span class="sidebar-action-text"><%= t('hyrax.embargoes.index.manage_embargoes') %></span>
16
+ <span class="fa fa-flag" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.embargoes.index.manage_embargoes') %></span>
17
17
  <% end %>
18
18
 
19
19
  <%= menu.nav_link(hyrax.leases_path) do %>
20
- <span class="fa fa-flag"></span> <span class="sidebar-action-text"><%= t('hyrax.leases.index.manage_leases') %></span>
20
+ <span class="fa fa-flag" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.leases.index.manage_leases') %></span>
21
21
  <% end %>
22
22
  <% end %>
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-users"></span> <%= t("hyrax.dashboard.manage_proxies") %></h1>
2
+ <h1><span class="fa fa-users" aria-hidden="true"></span> <%= t("hyrax.dashboard.manage_proxies") %></h1>
3
3
  <% end %>
4
4
 
5
5
  <div class="row">
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-sitemap"></span><%= t('.manage_embargoes') %></h1>
2
+ <h1><span class="fa fa-sitemap" aria-hidden="true"></span><%= t('.manage_embargoes') %></h1>
3
3
  <% end %>
4
4
 
5
5
  <div class="panel panel-default tabs">
@@ -1,6 +1,6 @@
1
1
  <% provide :page_title, curation_concern_page_title(curation_concern) %>
2
2
  <% provide :page_header do %>
3
- <h1><span class="fa fa-edit"></span><%= t('.header', file_set: curation_concern) %></h1>
3
+ <h1><span class="fa fa-edit" aria-hidden="true"></span><%= t('.header', file_set: curation_concern) %></h1>
4
4
  <% end %>
5
5
 
6
6
  <div class="row">
@@ -11,13 +11,13 @@
11
11
  <div class="panel panel-default tabs">
12
12
  <ul class="nav nav-tabs" role="tablist">
13
13
  <li id="edit_descriptions_link" class="active">
14
- <a href="#descriptions_display" data-toggle="tab"><i class="fa fa-tags"></i></span> <%= t('.descriptions') %></a>
14
+ <a href="#descriptions_display" data-toggle="tab"><i class="fa fa-tags" aria-hidden="true"></i></span> <%= t('.descriptions') %></a>
15
15
  </li>
16
16
  <li id="edit_versioning_link">
17
- <a href="#versioning_display" data-toggle="tab"><i class="fa fa-sitemap"></i> <%= t('.versions') %></a>
17
+ <a href="#versioning_display" data-toggle="tab"><i class="fa fa-sitemap" aria-hidden="true"></i> <%= t('.versions') %></a>
18
18
  </li>
19
19
  <li id="edit_permissions_link">
20
- <a href="#permissions_display" data-toggle="tab"><i class="fa fa-key"></i> <%= t('.permissions') %></a>
20
+ <a href="#permissions_display" data-toggle="tab"><i class="fa fa-key" aria-hidden="true"></i> <%= t('.permissions') %></a>
21
21
  </li>
22
22
  </ul>
23
23
  <div class="panel-body">
@@ -8,18 +8,18 @@
8
8
  <%= link_to '#',
9
9
  class: "btn btn-primary btn-lg",
10
10
  data: { behavior: 'select-work', target: '#worktypes-to-create', 'create-type' => 'single' } do %>
11
- <i class="glyphicon glyphicon-upload"></i> <%= t('hyrax.share_button') %>
11
+ <i class="glyphicon glyphicon-upload" aria-hidden="true"></i> <%= t('hyrax.share_button') %>
12
12
  <% end %>
13
13
  <% else # simple link to the first work type %>
14
14
  <%= link_to new_polymorphic_path([main_app, @presenter.first_work_type]),
15
15
  class: 'btn btn-primary' do %>
16
- <i class="glyphicon glyphicon-upload"></i> <%= t('hyrax.share_button') %>
16
+ <i class="glyphicon glyphicon-upload" aria-hidden="true"></i> <%= t('hyrax.share_button') %>
17
17
  <% end %>
18
18
  <% end %>
19
19
  <% else %>
20
20
  <%= link_to hyrax.my_works_path,
21
21
  class: "btn btn-primary btn-lg" do %>
22
- <i class="glyphicon glyphicon-upload"></i> <%= t('hyrax.share_button') %>
22
+ <i class="glyphicon glyphicon-upload" aria-hidden="true"></i> <%= t('hyrax.share_button') %>
23
23
  <% end %>
24
24
  <% end %>
25
25
  <p><%= link_to t(:'hyrax.pages.tabs.terms_page'), hyrax.terms_path %></p>
@@ -1,10 +1,12 @@
1
1
  <% id = admin_set_presenter.id %>
2
+ <% ul_id = 'admin-set-action-dropdown-ul-' + id %>
3
+
2
4
  <div class="btn-group">
3
- <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= id %>" aria-haspopup="true">
5
+ <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= id %>" aria-haspopup="true" aria-expanded="false" aria-controls="<%= ul_id %>">
4
6
  <span class="sr-only"><%= t("hyrax.dashboard.my.sr.press_to") %> </span>
5
7
  <%= t("hyrax.dashboard.my.action.select") %> <span class="caret" aria-hidden="true"></span>
6
8
  </button>
7
- <ul role="menu" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= id %>">
9
+ <ul role="menu" id="<%= ul_id %>" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= id %>">
8
10
  <li role="menuitem" tabindex="-1">
9
11
  <%= link_to hyrax.admin_admin_set_path(id),
10
12
  class: 'itemicon itemedit',
@@ -1,12 +1,13 @@
1
1
  <% id = collection_presenter.id %>
2
- <div class="btn-group">
2
+ <% ul_id = 'collection-action-dropdown-ul-' + id %>
3
3
 
4
- <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= id %>" aria-haspopup="true">
4
+ <div class="btn-group">
5
+ <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= id %>" aria-haspopup="true" aria-expanded="false" aria-controls="<%= ul_id %>">
5
6
  <span class="sr-only"><%= t("hyrax.dashboard.my.sr.press_to") %> </span>
6
7
  <%= t("hyrax.dashboard.my.action.select") %> <span class="caret" aria-hidden="true"></span>
7
8
  </button>
8
9
 
9
- <ul role="menu" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= id %>">
10
+ <ul role="menu" id="<%= ul_id %>" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= id %>">
10
11
  <li role="menuitem" tabindex="-1">
11
12
  <%= link_to hyrax.dashboard_collection_path(id),
12
13
  class: 'itemicon itemedit',
@@ -1,5 +1,5 @@
1
1
  <div class="btn-group">
2
- <button class="btn btn-default dropdown-toggle" type="button" id="<%= facet_field.field.parameterize %>" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
2
+ <button class="btn btn-default dropdown-toggle" type="button" id="<%= facet_field.field.parameterize %>" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" aria-controls="<%= facet_field.field.parameterize + '-dropdown-options' %>">
3
3
  <%= facet_field_label(facet_field.field) %>
4
4
  <span class="caret"></span>
5
5
  </button>
@@ -1,7 +1,7 @@
1
1
  <%# This template is used to render the initial facet list (#index action)
2
2
  and a paginated facet list in a modal (#facet action). The `dropdown-menu`
3
3
  class in only necessary for the former and causes display issues in the latter. -%>
4
- <ul class="<%= 'dropdown-menu ' if action_name == 'index' %>facet-values" aria-labelledby="<%= facet_field.field.parameterize %>">
4
+ <ul id="<%= facet_field.field.parameterize + '-dropdown-options' %>" class="<%= 'dropdown-menu ' if action_name == 'index' %>facet-values" aria-labelledby="<%= facet_field.field.parameterize %>">
5
5
  <% paginator = facet_paginator(facet_field, display_facet) %>
6
6
  <%= render_facet_limit_list paginator, facet_field.key %>
7
7
 
@@ -1,5 +1,5 @@
1
1
  <% if !subfacet ||= false %>
2
- <ul class="dropdown-menu pivot-facet list-unstyled">
2
+ <ul class="dropdown-menu pivot-facet list-unstyled" id="<%= facet_field.field.parameterize + '-dropdown-options' %>">
3
3
  <% end %>
4
4
 
5
5
  <% display_facet.items.each do |item| -%>
@@ -1,12 +1,14 @@
1
+ <% ul_id = 'admin-set-action-dropdown-ul-' + document.id %>
2
+
1
3
  <div class="btn-group">
2
4
 
3
- <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= document.id %>" aria-haspopup="true">
5
+ <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= document.id %>" aria-haspopup="true" aria-expanded="false" aria-controls="<%= ul_id %>">
4
6
  <span class="sr-only"><%= t("hyrax.dashboard.my.sr.press_to") %> </span>
5
7
  <%= t("hyrax.dashboard.my.action.select") %>
6
8
  <span class="caret" aria-hidden="true"></span>
7
9
  </button>
8
10
 
9
- <ul role="menu" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= document.id %>">
11
+ <ul role="menu" id="<%= ul_id %>" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= document.id %>">
10
12
 
11
13
  <% if can? :edit, document.id %>
12
14
  <li role="menuitem" tabindex="-1">
@@ -29,14 +31,14 @@
29
31
 
30
32
  <li role="menuitem" tabindex="-1">
31
33
  <%= display_trophy_link(current_user, document.id) do |text| %>
32
- <i class='glyphicon glyphicon-star'></i> <%= text %>
34
+ <i class="glyphicon glyphicon-star" aria-hidden="true"></i> <%= text %>
33
35
  <% end %>
34
36
  </li>
35
37
 
36
38
  <% if can? :transfer, document.id %>
37
39
  <li role="menuitem" tabindex="-1">
38
40
  <%= link_to(hyrax.new_work_transfer_path(document.id), class: 'itemicon itemtransfer', title: t("hyrax.dashboard.my.action.transfer")) do %>
39
- <i aria-hidden="true" class='glyphicon glyphicon-transfer'></i>
41
+ <i class="glyphicon glyphicon-transfer" aria-hidden="true"></i>
40
42
  <span> <%= t("hyrax.dashboard.my.action.transfer") %> </span>
41
43
  <% end %>
42
44
  </li>
@@ -13,7 +13,7 @@
13
13
  </script>
14
14
 
15
15
  <% provide :page_header do %>
16
- <h1><span class="fa fa-folder-open"></span> <%= t("hyrax.admin.sidebar.collections") %></h1>
16
+ <h1><span class="fa fa-folder-open" aria-hidden="true"></span> <%= t("hyrax.admin.sidebar.collections") %></h1>
17
17
  <% end %>
18
18
 
19
19
  <div class="collections-wrapper">
@@ -14,7 +14,7 @@
14
14
  </script>
15
15
 
16
16
  <% provide :page_header do %>
17
- <h1><span class="fa fa-file"></span> <%= t("hyrax.admin.sidebar.works") %></h1>
17
+ <h1><span class="fa fa-file" aria-hidden="true"></span> <%= t("hyrax.admin.sidebar.works") %></h1>
18
18
  <% end %>
19
19
 
20
20
  <div class="row">
@@ -31,7 +31,7 @@
31
31
 
32
32
  <td class="date"><%= document.date_uploaded %></td>
33
33
  <td class='text-center'>
34
- <span class="fa <%= current_user.trophies.where(work_id: document.id).exists? ? 'fa-star highlighted-work' : 'fa-star-o trophy-off' %>"></span></td>
34
+ <span class="fa <%= current_user.trophies.where(work_id: document.id).exists? ? 'fa-star highlighted-work' : 'fa-star-o trophy-off' %>" aria-hidden="true"></span></td>
35
35
  <td><%= render_visibility_link document %></td>
36
36
 
37
37
  <td>
@@ -14,7 +14,7 @@
14
14
  </script>
15
15
 
16
16
  <% provide :page_header do %>
17
- <h1><span class="fa fa-file"></span> <%= t("hyrax.admin.sidebar.works") %></h1>
17
+ <h1><span class="fa fa-file" aria-hidden="true"></span> <%= t("hyrax.admin.sidebar.works") %></h1>
18
18
  <% if current_ability.can_create_any_work? %>
19
19
  <div class="pull-right">
20
20
  <% if @create_work_presenter.many? %>
@@ -1,5 +1,5 @@
1
1
  <% content_for :page_header do %>
2
- <h1><span class="fa fa-file-text-o"></span> <%= t(:'hyrax.admin.sidebar.pages') %></h1>
2
+ <h1><span class="fa fa-file-text-o" aria-hidden="true"></span> <%= t(:'hyrax.admin.sidebar.pages') %></h1>
3
3
  <% end %>
4
4
 
5
5
  <div class="row">
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-arrows-h"></span> <%= t("hyrax.dashboard.transfer_of_ownership") %></h1>
2
+ <h1><span class="fa fa-arrows-h" aria-hidden="true"></span> <%= t("hyrax.dashboard.transfer_of_ownership") %></h1>
3
3
  <% end %>
4
4
 
5
5
  <div class="row">
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-arrows-h"></span><%= t(:'.title', work_title: @proxy_deposit_request.to_s) %></h1>
2
+ <h1><span class="fa fa-arrows-h" aria-hidden="true"></span><%= t(:'.title', work_title: @proxy_deposit_request.to_s) %></h1>
3
3
  <% end %>
4
4
 
5
5
  <span class="sr-only"><%= t(:'.sr_only_description', work_title: @proxy_deposit_request.to_s) %></span>
@@ -1,4 +1,4 @@
1
1
  <%= render 'hyrax/users/user', user: @user %>
2
2
 
3
3
  <br />
4
- <a class="btn btn-primary" href="<%= hyrax.users_path %>"><i class="glyphicon glyphicon-globe"></i> View Users</a>
4
+ <a class="btn btn-primary" href="<%= hyrax.users_path %>"><i class="glyphicon glyphicon-globe" aria-hidden="true"></i> View Users</a>
@@ -11,35 +11,35 @@
11
11
  <% end %>
12
12
 
13
13
  <% if user.facebook_handle.present? %>
14
- <dt><i class="fa fa-facebook"></i> Facebook Handle</dt>
14
+ <dt><i class="fa fa-facebook" aria-hidden="true"></i> Facebook Handle</dt>
15
15
  <dd><%= link_to user.facebook_handle, "http://facebook.com/#{user.facebook_handle}", {target:'_blank'} %></dd>
16
16
  <% end %>
17
17
 
18
18
  <% if user.twitter_handle.present? %>
19
- <dt><i class="fa fa-twitter"></i> Twitter Handle</dt>
19
+ <dt><i class="fa fa-twitter" aria-hidden="true"></i> Twitter Handle</dt>
20
20
  <dd><%= link_to user.twitter_handle, "http://twitter.com/#{user.twitter_handle}", {target:'_blank'} %></dd>
21
21
  <% end %>
22
22
 
23
23
  <% if user.googleplus_handle.present? %>
24
- <dt><i class="fa fa-google-plus"></i> Google+ Handle</dt>
24
+ <dt><i class="fa fa-google-plus" aria-hidden="true"></i> Google+ Handle</dt>
25
25
  <dd><%= link_to user.googleplus_handle, "http://google.com/+#{user.googleplus_handle}", {target:'_blank'} %></dd>
26
26
  <% end %>
27
27
 
28
28
  <% if user.linkedin_handle.present? %>
29
- <dt><i class="fa fa-linkedin"></i> LinkedIn</dt>
29
+ <dt><i class="fa fa-linkedin" aria-hidden="true"></i> LinkedIn</dt>
30
30
  <dd><%= link_to "#{@linkedInUrl}", "#{@linkedInUrl}", { target: '_blank' } %></dd>
31
31
  <% end %>
32
32
 
33
- <dt><i class="fa fa-envelope"></i> Email</dt>
33
+ <dt><i class="fa fa-envelope" aria-hidden="true"></i> Email</dt>
34
34
  <dd><%= mail_to user.email %></dd>
35
35
 
36
36
  <% if user.chat_id %>
37
- <dt><i class="glyphicon glyphicon-bullhorn"></i> Chat ID</dt>
37
+ <dt><i class="glyphicon glyphicon-bullhorn" aria-hidden="true"></i> Chat ID</dt>
38
38
  <dd><%= user.chat_id %></dd>
39
39
  <% end %>
40
40
 
41
41
  <% if user.website %>
42
- <dt><i class="glyphicon glyphicon-globe"></i> Website(s)</dt>
42
+ <dt><i class="glyphicon glyphicon-globe" aria-hidden="true"></i> Website(s)</dt>
43
43
  <dd><%= iconify_auto_link(user.website) %></dd>
44
44
  <% end %>
45
45
 
@@ -64,7 +64,7 @@
64
64
  <% end %>
65
65
 
66
66
  <% if user.address %>
67
- <dt><i class="glyphicon glyphicon-map-marker"></i> Address</dt>
67
+ <dt><i class="glyphicon glyphicon-map-marker" aria-hidden="true"></i> Address</dt>
68
68
  <dd><%= user.address %></dd>
69
69
  <% end %>
70
70
 
@@ -74,7 +74,7 @@
74
74
  <% end %>
75
75
 
76
76
  <% if user.telephone %>
77
- <dt><i class="glyphicon glyphicon-earphone"></i> Telephone</dt>
77
+ <dt><i class="glyphicon glyphicon-earphone" aria-hidden="true"></i> Telephone</dt>
78
78
  <dd><%= link_to_telephone(user) %></dd>
79
79
  <% end %>
80
80