hyrax 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 22ddfe8e8c1460fde698f49262a96de5ed83e1e6123dca1c9fdc202936b04e4e
4
- data.tar.gz: 0e8ebfc5c1f48013d9c5513edee21abe45d019794f278cec0e2a42480e05075e
2
+ SHA1:
3
+ metadata.gz: 6f086851536da61deedbb9795675b44319ad7708
4
+ data.tar.gz: fdc35cc7f45c521f8b196b8642900270d4714ba9
5
5
  SHA512:
6
- metadata.gz: 3eb864d6b6bba16982ac67c2121324861b8a7b64ed17d64d8bf145554494509bf886aff95102f6d8b96893380723d81d740140e7dfbe2a6ba650cd09dd39ddfb
7
- data.tar.gz: a8c02242bd7627bb2d04a694fe2405fe5927acd39d8c41939cae76043948d4b4d7caeec8f142d4c3d14b5969fcb8c10cd24644b8d77ab296585052b2e5a8c2a4
6
+ metadata.gz: 4d043eb1fd8223cf6f517c6eba02228c637bcd5179bd32fae7b2def80373c285e5b5c4c6ba6410585cc35b9e20f8f5ef5ac8da7db260c69aa2825a0a64c3d512
7
+ data.tar.gz: 305a94619c505e545a44d8c26ffc2e03168563c5caa0c6bb1ac7cd00b80afe822b1fad3b8a4e8b9e5e75cfe69516b738d6c1c440c13f45d47726ff2bbf371f7f
data/.gitignore CHANGED
@@ -50,6 +50,9 @@ tmp
50
50
  *.log
51
51
  *~
52
52
 
53
+ ## Xray Rails
54
+ .xrayconfig.yml
55
+
53
56
  #redis snapshot db
54
57
  dump.rdb
55
58
 
data/README.md CHANGED
@@ -62,7 +62,7 @@ The Samvera community is here to help. Please see our [support guide](./.github/
62
62
  # Getting started
63
63
 
64
64
  This document contains instructions specific to setting up an app with __Hyrax
65
- v2.2.0__. If you are looking for instructions on installing a different
65
+ v2.2.1__. If you are looking for instructions on installing a different
66
66
  version, be sure to select the appropriate branch or tag from the drop-down
67
67
  menu above.
68
68
 
@@ -161,7 +161,7 @@ NOTE: The steps need to be done in order to create a new Hyrax based app.
161
161
  Generate a new Rails application using the template.
162
162
 
163
163
  ```
164
- rails _5.1.6_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.2.0/template.rb
164
+ rails _5.1.6_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.2.1/template.rb
165
165
  ```
166
166
 
167
167
  Generating a new Rails application using Hyrax's template above takes cares of a number of steps for you, including:
@@ -7,4 +7,10 @@ table#authorizedProxies {
7
7
  color: red;
8
8
  }
9
9
  }
10
- }
10
+ }
11
+
12
+ .proxy-rights {
13
+ label {
14
+ display: block;
15
+ }
16
+ }
@@ -20,6 +20,12 @@ module Hyrax
20
20
  user.last_sign_in_at || user.created_at
21
21
  end
22
22
 
23
+ # return [Boolean] true if the devise trackable module is enabled.
24
+ def show_last_access?
25
+ return @show_last_access unless @show_last_access.nil?
26
+ @show_last_access = ::User.devise_modules.include?(:trackable)
27
+ end
28
+
23
29
  private
24
30
 
25
31
  # Returns a list of users excluding the system users and guest_users
@@ -26,7 +26,7 @@ module Hyrax
26
26
  href: "##{id}",
27
27
  'aria-expanded' => open,
28
28
  'aria-controls' => id) do
29
- safe_join([content_tag(:span, '', class: icon_class),
29
+ safe_join([content_tag(:span, '', class: icon_class, 'aria-hidden' => true),
30
30
  content_tag(:span, text)], ' ')
31
31
  end
32
32
  end
@@ -1,4 +1,4 @@
1
1
  <a id="logo" class="navbar-brand" href="<%= hyrax.root_path %>" data-no-turbolink="true">
2
- <span class="glyphicon glyphicon-globe" role="img" aria-label="<%= application_name %>"></span>
2
+ <span class="glyphicon glyphicon-globe" role="img" aria-label="<%= application_name %>" aria-hidden="true"></span>
3
3
  <span class="institution_name"><%= application_name %></span>
4
4
  </a>
@@ -5,14 +5,14 @@
5
5
  <%= render_notifications(user: current_user) %>
6
6
  </li>
7
7
  <li class="dropdown">
8
- <%= link_to hyrax.dashboard_profile_path(current_user), role: 'button', data: { toggle: 'dropdown' }, aria: { haspopup: true, expanded: false} do %>
8
+ <%= link_to hyrax.dashboard_profile_path(current_user), role: 'button', data: { toggle: 'dropdown' }, aria: { haspopup: true, expanded: false, controls: 'user-util-links' } do %>
9
9
  <span class="sr-only"><%= t("hyrax.toolbar.profile.sr_action") %></span>
10
10
  <span class="hidden-xs">&nbsp;<%= current_user.name %></span>
11
11
  <span class="sr-only"> <%= t("hyrax.toolbar.profile.sr_target") %></span>
12
- <span class="fa fa-user"></span>
12
+ <span class="fa fa-user" aria-hidden="true"></span>
13
13
  <span class="caret"></span>
14
14
  <% end %>
15
- <ul class="dropdown-menu dropdown-menu-right" role="menu">
15
+ <ul id="user-util-links" class="dropdown-menu dropdown-menu-right" role="menu">
16
16
  <li><%= link_to t("hyrax.toolbar.dashboard.menu"), hyrax.dashboard_path %></li>
17
17
 
18
18
  <li class="divider"></li>
@@ -12,7 +12,9 @@
12
12
  </button>
13
13
  <% if current_user %>
14
14
  <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false">
15
- <span data-search-element="label"><%= t("hyrax.search.form.option.all.label_long", application_name: application_name) %></span>
15
+
16
+ <span class="sr-only" data-search-element="label"><%= t("hyrax.search.form.option.all.label_long", application_name: application_name) %></span>
17
+ <span aria-hidden="true"><%= t("hyrax.search.form.option.all.label_short") %></span>
16
18
  <span class="caret"></span>
17
19
  </button>
18
20
 
@@ -1,3 +1,3 @@
1
1
  <div class="col-md-2">
2
- <span class="<%= Hyrax::ModelIcon.css_class_for(Collection) %> collection-icon-search"></span>
2
+ <span class="<%= Hyrax::ModelIcon.css_class_for(Collection) %> collection-icon-search" aria-hidden="true"></span>
3
3
  </div>
@@ -7,17 +7,17 @@
7
7
  <div class="col-sm-4">
8
8
  <div class="pull-right">
9
9
  <%= link_to edit_admin_admin_set_path(presenter), class: 'btn btn-primary' do %>
10
- <span class="fa fa-edit"></span> <%= t(:'helpers.action.edit') %>
10
+ <span class="fa fa-edit" aria-hidden="true"></span> <%= t(:'helpers.action.edit') %>
11
11
  <% end %>
12
12
  <% if presenter.disable_delete? %>
13
13
  <span title="<%= presenter.disabled_message %>">
14
14
  <%= link_to admin_admin_set_path(presenter), class: 'btn btn-danger disabled' do %>
15
- <span class="fa fa-remove"></span> <%= t(:'helpers.action.delete') %>
15
+ <span class="fa fa-remove" aria-hidden="true"></span> <%= t(:'helpers.action.delete') %>
16
16
  <% end %>
17
17
  </span>
18
18
  <% else %>
19
19
  <%= link_to admin_admin_set_path(presenter), class: 'btn btn-danger', data: { confirm: t('.confirm_delete'), method: :delete } do %>
20
- <span class="fa fa-remove"></span> <%= t(:'helpers.action.delete') %>
20
+ <span class="fa fa-remove" aria-hidden="true"></span> <%= t(:'helpers.action.delete') %>
21
21
  <% end %>
22
22
  <% end %>
23
23
  </div>
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-edit"></span> <%= t('.header', title: @form.title) %></h1>
2
+ <h1><span class="fa fa-edit" aria-hidden="true"></span> <%= t('.header', title: @form.title) %></h1>
3
3
  <% end %>
4
4
 
5
5
  <div class="row">
@@ -1,9 +1,9 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-sitemap"></span> Administrative Sets</h1>
2
+ <h1><span class="fa fa-sitemap" aria-hidden="true"></span> Administrative Sets</h1>
3
3
  <% if can? :create, AdminSet %>
4
4
  <div class="pull-right">
5
5
  <%= link_to hyrax.new_admin_admin_set_path, class: 'btn btn-primary' do %>
6
- <span class="fa fa-edit"></span> <%= t(:'helpers.action.admin_set.new') %>
6
+ <span class="fa fa-edit" aria-hidden="true"></span> <%= t(:'helpers.action.admin_set.new') %>
7
7
  <% end %>
8
8
  </div>
9
9
  <% end %>
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-edit"></span> <%= t('.header') %></h1>
2
+ <h1><span class="fa fa-edit" aria-hidden="true"></span> <%= t('.header') %></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('.header') %></h1>
2
+ <h1><span class="fa fa-sitemap" aria-hidden="true"></span> <%= t('.header') %></h1>
3
3
  <% end %>
4
4
 
5
5
  <div class="row">
@@ -14,7 +14,7 @@
14
14
  <%= render_thumbnail_tag @presenter.solr_document, {}, suppress_link: true %>
15
15
  </div>
16
16
  <% else %>
17
- <span class="fa fa-sitemap collection-icon-search"></span>
17
+ <span class="fa fa-sitemap collection-icon-search" aria-hidden="true"></span>
18
18
  <% end %>
19
19
  </div>
20
20
  <div class="col-md-10">
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-paint-brush"></span> <%= t('.header') %></h1>
2
+ <h1><span class="fa fa-paint-brush" aria-hidden="true"></span> <%= t('.header') %></h1>
3
3
  <% end %>
4
4
 
5
5
  <div class="panel panel-default">
@@ -1,7 +1,7 @@
1
1
  <div class="collection-types-wrapper">
2
2
  <% provide :page_title, construct_page_title( t('.header') ) %>
3
3
  <% provide :page_header do %>
4
- <h1><span class="fa fa-folder-open"></span> <%= t('.header') %>: <%= @form.title %></h1>
4
+ <h1><span class="fa fa-folder-open" aria-hidden="true"></span> <%= t('.header') %>: <%= @form.title %></h1>
5
5
  <% end %>
6
6
 
7
7
  <div class="row">
@@ -1,7 +1,7 @@
1
1
  <div class="collection-types-wrapper">
2
2
  <% # for modal dialogue setup and interaction see app/assets/javascripts/collection_types.es6 %>
3
3
  <% provide :page_header do %>
4
- <h1><span class="fa fa-folder-open"></span> <%= t('.header') %></h1>
4
+ <h1><span class="fa fa-folder-open" aria-hidden="true"></span> <%= t('.header') %></h1>
5
5
  <% end %>
6
6
 
7
7
  <div class="panel panel-default">
@@ -1,6 +1,6 @@
1
1
  <% provide :page_title, construct_page_title( t('.header') ) %>
2
2
  <% provide :page_header do %>
3
- <h1><span class="fa fa-folder-open"></span> <%= t('.header') %></h1>
3
+ <h1><span class="fa fa-folder-open" aria-hidden="true"></span> <%= t('.header') %></h1>
4
4
  <% end %>
5
5
 
6
6
  <div class="row">
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-wrench"></span> <%= t('.header') %></h1>
2
+ <h1><span class="fa fa-wrench" aria-hidden="true"></span> <%= t('.header') %></h1>
3
3
  <% end %>
4
4
  <div class="flip row">
5
5
  <div class="col-md-12">
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-user"></span> <%= t('hyrax.admin.users.index.title') %></h1>
2
+ <h1><span class="fa fa-user" aria-hidden="true"></span> <%= t('hyrax.admin.users.index.title') %></h1>
3
3
  <% end %>
4
4
 
5
5
  <div class="panel panel-default users-listing">
@@ -15,7 +15,9 @@
15
15
  <th></th>
16
16
  <th><%= t('.id_label') %></th>
17
17
  <th><%= t('.role_label') %></th>
18
- <th><%= t('.access_label') %></th>
18
+ <% if @presenter.show_last_access? %>
19
+ <th><%= t('.access_label') %></th>
20
+ <% end %>
19
21
  </tr>
20
22
  </thead>
21
23
  <tbody>
@@ -32,12 +34,14 @@
32
34
  <% end %>
33
35
  </ul>
34
36
  </td>
35
- <td>
36
- <%# in the case that a user is created who never signs in, this is necessary %>
37
- <relative-time datetime="<%= @presenter.last_accessed(user).getutc.iso8601 %>" title="<%= @presenter.last_accessed(user).to_formatted_s(:standard) %>">
38
- <%= @presenter.last_accessed(user).to_formatted_s(:long_ordinal) %>
39
- </relative-time>
40
- </td>
37
+ <% if @presenter.show_last_access? %>
38
+ <td>
39
+ <%# in the case that a user is created who never signs in, this is necessary %>
40
+ <relative-time datetime="<%= @presenter.last_accessed(user).getutc.iso8601 %>" title="<%= @presenter.last_accessed(user).to_formatted_s(:standard) %>">
41
+ <%= @presenter.last_accessed(user).to_formatted_s(:long_ordinal) %>
42
+ </relative-time>
43
+ </td>
44
+ <% end %>
41
45
  </tr>
42
46
  <% end %>
43
47
  </tbody>
@@ -1,5 +1,5 @@
1
1
  <% provide :page_header do %>
2
- <h1><span class="fa fa-users"></span> <%= t("hyrax.admin.workflow_roles.header") %></h1>
2
+ <h1><span class="fa fa-users" aria-hidden="true"></span> <%= t("hyrax.admin.workflow_roles.header") %></h1>
3
3
  <% end %>
4
4
 
5
5
  <div class="row">
@@ -13,17 +13,17 @@
13
13
  <div class="row">
14
14
  <div class="col-xs-12">
15
15
  <!-- The fileinput-button span is used to style the file input field as button -->
16
- <button id="addfiles" class="btn btn-success fileinput-button">
16
+ <span id="addfiles" class="btn btn-success fileinput-button">
17
17
  <span class="glyphicon glyphicon-plus"></span>
18
18
  <span>Add files...</span>
19
- <input type="file" name="files[]" tabindex="-1" aria-hidden="true" multiple />
20
- </button>
19
+ <input type="file" name="files[]" multiple />
20
+ </span>
21
21
  <!-- The fileinput-button span is used to style the file input field as button -->
22
- <button id="addfolder" class="btn btn-success fileinput-button">
22
+ <span id="addfolder" class="btn btn-success fileinput-button">
23
23
  <span class="glyphicon glyphicon-plus"></span>
24
24
  <span>Add folder...</span>
25
- <input type="file" name="files[]" tabindex="-1" aria-hidden="true" multiple directory webkitdirectory />
26
- </button>
25
+ <input type="file" name="files[]" multiple directory webkitdirectory />
26
+ </span>
27
27
  <% if Hyrax.config.browse_everything? %>
28
28
  <%= button_tag(type: 'button', class: 'btn btn-success', id: "browse-btn",
29
29
  'data-toggle' => 'browse-everything', 'data-route' => browse_everything_engine.root_path,
@@ -10,23 +10,20 @@
10
10
  <% end %>
11
11
  <% if presenter.valid_child_concerns.length > 0 %>
12
12
  <div class="btn-group">
13
- <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
14
- Attach Child <span class="caret"></span>
15
- </button>
16
-
17
- <input type="checkbox" style="display:none" name="batch_document_ids[]" id="batch_document_<%= presenter.id %>" value="<%= presenter.id %>" class="batch_document_selector" checked="checked" />
18
- <%= button_tag t('hyrax.dashboard.my.action.add_to_collection'),
19
- class: 'btn btn-default submits-batches submits-batches-add',
20
- data: { toggle: "modal", target: "#collection-list-container" } %>
21
-
22
- <ul class="dropdown-menu">
23
- <% presenter.valid_child_concerns.each do |concern| %>
24
- <li>
25
- <%= link_to "Attach #{concern.human_readable_type}", polymorphic_path([main_app, :new, :hyrax, :parent, concern.model_name.singular], parent_id: presenter.id) %>
26
- </li>
27
- <% end %>
28
- </ul>
13
+ <button type="button" class="btn btn-default dropdown-toggle" type="button" id="dropdown-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
14
+ Attach Child <span class="caret"></span></button>
15
+ <ul class="dropdown-menu">
16
+ <% presenter.valid_child_concerns.each do |concern| %>
17
+ <li>
18
+ <%= link_to "Attach #{concern.human_readable_type}", polymorphic_path([main_app, :new, :hyrax, :parent, concern.model_name.singular], parent_id: presenter.id) %>
19
+ </li>
20
+ <% end %>
21
+ </ul>
29
22
  </div>
23
+ <input type="checkbox" style="display:none" name="batch_document_ids[]" id="batch_document_<%= presenter.id %>" value="<%= presenter.id %>" class="batch_document_selector" checked="checked" />
24
+ <%= button_tag t('hyrax.dashboard.my.action.add_to_collection'),
25
+ class: 'btn btn-default submits-batches submits-batches-add',
26
+ data: { toggle: "modal", target: "#collection-list-container" } %>
30
27
  <% end %>
31
28
  <% end %>
32
29
  <% if presenter.work_featurable? %>
@@ -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("hyrax.works.update.header") %></h1>
3
+ <h1><span class="fa fa-edit" aria-hidden="true"></span><%= t("hyrax.works.update.header") %></h1>
4
4
  <% end %>
5
5
 
6
6
  <%= render 'form' %>
@@ -31,6 +31,6 @@
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
  </tr>
@@ -4,5 +4,5 @@
4
4
  alt: "",
5
5
  role: "presentation" %>
6
6
  <% else %>
7
- <span class="<%= Hyrax::ModelIcon.css_class_for(Collection) %> collection-icon-search"></span>
7
+ <span class="<%= Hyrax::ModelIcon.css_class_for(Collection) %> collection-icon-search" aria-hidden="true"></span>
8
8
  <% end %>
@@ -1,5 +1,5 @@
1
1
  <% content_for :page_header do %>
2
- <h1><span class="fa fa-square-o"></span> <%= t(:'hyrax.admin.sidebar.content_blocks') %></h1>
2
+ <h1><span class="fa fa-square-o" aria-hidden="true"></span> <%= t(:'hyrax.admin.sidebar.content_blocks') %></h1>
3
3
  <% end %>
4
4
 
5
5
  <div class="row">
@@ -7,9 +7,11 @@
7
7
  <div class="row">
8
8
  <div class="col-xs-6 proxy-search">
9
9
  <h4><%= t("hyrax.dashboard.authorize_proxies") %></h4>
10
- <label class="sr-only" for="user"><%= t("hyrax.dashboard.proxy_user") %></label>
11
- <%= hidden_field_tag :user, nil, data: { grantor: current_user.to_param } %>
12
- <%= hidden_field_tag :delete_button_label, nil, data: { label: I18n.t('hyrax.dashboard.proxy_delete') } %>
10
+ <div class="form-group">
11
+ <label for="user"><%= t("hyrax.dashboard.proxy_user") %></label>
12
+ <%= hidden_field_tag :user, nil, data: { grantor: current_user.to_param } %>
13
+ <%= hidden_field_tag :delete_button_label, nil, data: { label: I18n.t('hyrax.dashboard.proxy_delete') } %>
14
+ </div>
13
15
  </div>
14
16
 
15
17
  <div class="col-xs-6">
@@ -13,11 +13,11 @@
13
13
  <div class="row fileupload-buttonbar">
14
14
  <div class="col-xs-4">
15
15
  <!-- The fileinput-button span is used to style the file input field as button -->
16
- <button class="btn btn-success fileinput-button">
16
+ <span class="btn btn-success fileinput-button">
17
17
  <span class="glyphicon glyphicon-plus"></span>
18
18
  <span>Choose File</span>
19
- <input type="file" name="files[]" tabindex="-1" aria-hidden="true" single />
20
- </button>
19
+ <input type="file" name="files[]" single />
20
+ </span>
21
21
  </div> <!-- end col-xs-4 -->
22
22
 
23
23
  <!-- The global progress state -->
@@ -90,11 +90,11 @@
90
90
  <div class="row fileupload-buttonbar">
91
91
  <div class="col-xs-4">
92
92
  <!-- The fileinput-button span is used to style the file input field as button -->
93
- <button class="btn btn-success fileinput-button">
93
+ <span class="btn btn-success fileinput-button">
94
94
  <span class="glyphicon glyphicon-plus"></span>
95
95
  <span>Choose File</span>
96
- <input type="file" name="files[]" tabindex="-1" aria-hidden="true" single />
97
- </button>
96
+ <input type="file" name="files[]" single />
97
+ </span>
98
98
  </div> <!-- end col-xs-4 -->
99
99
 
100
100
  <!-- The global progress state -->
@@ -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>
@@ -8,13 +8,13 @@
8
8
  class: "itemicon itemedit",
9
9
  title: t('hyrax.collection.document_list.edit'),
10
10
  id: "edit_work_link_#{document.id}" do %>
11
- <i class='glyphicon glyphicon-pencil'></i> <%= t('hyrax.collection.document_list.edit') %>
11
+ <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i> <%= t('hyrax.collection.document_list.edit') %>
12
12
  <% end %>
13
13
  </li>
14
14
  <% end %>
15
15
  <li>
16
16
  <%= display_trophy_link(current_user, document.id) do |text| %>
17
- <i class='glyphicon glyphicon-star'></i> <%= text %>
17
+ <i class="glyphicon glyphicon-star" aria-hidden="true"></i> <%= text %>
18
18
  <% end %>
19
19
  </li>
20
20
  </ul>