hyrax 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +3 -0
- data/README.md +2 -2
- data/app/assets/stylesheets/hyrax/_proxy-rights.scss +7 -1
- data/app/presenters/hyrax/admin/users_presenter.rb +6 -0
- data/app/presenters/hyrax/collapsable_section_presenter.rb +1 -1
- data/app/views/_logo.html.erb +1 -1
- data/app/views/_user_util_links.html.erb +3 -3
- data/app/views/catalog/_search_form.html.erb +3 -1
- data/app/views/catalog/_thumbnail_list_collection.html.erb +1 -1
- data/app/views/hyrax/admin/admin_sets/_show_actions.html.erb +3 -3
- data/app/views/hyrax/admin/admin_sets/edit.html.erb +1 -1
- data/app/views/hyrax/admin/admin_sets/index.html.erb +2 -2
- data/app/views/hyrax/admin/admin_sets/new.html.erb +1 -1
- data/app/views/hyrax/admin/admin_sets/show.html.erb +2 -2
- data/app/views/hyrax/admin/appearances/show.html.erb +1 -1
- data/app/views/hyrax/admin/collection_types/edit.html.erb +1 -1
- data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
- data/app/views/hyrax/admin/collection_types/new.html.erb +1 -1
- data/app/views/hyrax/admin/features/index.html.erb +1 -1
- data/app/views/hyrax/admin/users/index.html.erb +12 -8
- data/app/views/hyrax/admin/workflow_roles/index.html.erb +1 -1
- data/app/views/hyrax/base/_form_files.html.erb +6 -6
- data/app/views/hyrax/base/_show_actions.html.erb +13 -16
- data/app/views/hyrax/base/edit.html.erb +1 -1
- data/app/views/hyrax/collections/_list_works.html.erb +1 -1
- data/app/views/hyrax/collections/_media_display.html.erb +1 -1
- data/app/views/hyrax/content_blocks/edit.html.erb +1 -1
- data/app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb +5 -3
- data/app/views/hyrax/dashboard/collections/_form_branding.html.erb +6 -6
- data/app/views/hyrax/dashboard/collections/_list_works.html.erb +1 -1
- data/app/views/hyrax/dashboard/collections/_show_document_list_menu.html.erb +2 -2
- data/app/views/hyrax/dashboard/collections/_work_action_menu.html.erb +2 -2
- data/app/views/hyrax/dashboard/collections/edit.html.erb +1 -1
- data/app/views/hyrax/dashboard/collections/new.html.erb +1 -1
- data/app/views/hyrax/dashboard/collections/show.html.erb +1 -1
- data/app/views/hyrax/dashboard/profiles/_edit_primary.html.erb +2 -2
- data/app/views/hyrax/dashboard/profiles/edit.html.erb +1 -1
- data/app/views/hyrax/dashboard/profiles/show.html.erb +1 -1
- data/app/views/hyrax/dashboard/sidebar/_activity.html.erb +5 -5
- data/app/views/hyrax/dashboard/sidebar/_configuration.html.erb +6 -6
- data/app/views/hyrax/dashboard/sidebar/_repository_content.html.erb +2 -2
- data/app/views/hyrax/dashboard/sidebar/_tasks.html.erb +4 -4
- data/app/views/hyrax/depositors/index.html.erb +1 -1
- data/app/views/hyrax/embargoes/index.html.erb +1 -1
- data/app/views/hyrax/file_sets/edit.html.erb +4 -4
- data/app/views/hyrax/homepage/index.html.erb +3 -3
- data/app/views/hyrax/my/_admin_set_action_menu.html.erb +4 -2
- data/app/views/hyrax/my/_collection_action_menu.html.erb +4 -3
- data/app/views/hyrax/my/_facet_layout.html.erb +1 -1
- data/app/views/hyrax/my/_facet_limit.html.erb +1 -1
- data/app/views/hyrax/my/_facet_pivot.html.erb +1 -1
- data/app/views/hyrax/my/_work_action_menu.html.erb +6 -4
- data/app/views/hyrax/my/collections/index.html.erb +1 -1
- data/app/views/hyrax/my/index.html.erb +1 -1
- data/app/views/hyrax/my/works/_list_works.html.erb +1 -1
- data/app/views/hyrax/my/works/index.html.erb +1 -1
- data/app/views/hyrax/pages/edit.html.erb +1 -1
- data/app/views/hyrax/transfers/index.html.erb +1 -1
- data/app/views/hyrax/transfers/new.html.erb +1 -1
- data/app/views/hyrax/users/_left_sidebar.html.erb +1 -1
- data/app/views/hyrax/users/_user_info.html.erb +9 -9
- data/app/views/hyrax/users/_vitals.html.erb +3 -3
- data/app/views/shared/_locale_picker.html.erb +2 -2
- data/config/locales/hyrax.de.yml +35 -0
- data/config/locales/hyrax.en.yml +29 -31
- data/config/locales/hyrax.es.yml +35 -0
- data/config/locales/hyrax.fr.yml +35 -0
- data/config/locales/hyrax.it.yml +35 -0
- data/config/locales/hyrax.pt-BR.yml +546 -511
- data/config/locales/hyrax.zh.yml +35 -0
- data/lib/hyrax/version.rb +1 -1
- data/spec/controllers/hyrax/homepage_controller_spec.rb +3 -2
- data/spec/factories/admin_sets.rb +1 -1
- data/spec/factories/admin_sets_lw.rb +7 -7
- data/spec/factories/api_items.rb +1 -1
- data/spec/factories/collection_branding_infos.rb +7 -7
- data/spec/factories/collection_type_participants.rb +2 -2
- data/spec/factories/collection_types.rb +28 -28
- data/spec/factories/collections.rb +14 -14
- data/spec/factories/collections_factory.rb +12 -12
- data/spec/factories/file_sets.rb +3 -3
- data/spec/factories/generic_works.rb +9 -9
- data/spec/factories/operations.rb +5 -5
- data/spec/factories/permission_template_accesses.rb +3 -3
- data/spec/factories/permission_templates.rb +10 -10
- data/spec/factories/single_use_links.rb +4 -4
- data/spec/factories/sipity_entities.rb +1 -1
- data/spec/factories/users.rb +4 -4
- data/spec/factories/workflow_actions.rb +1 -1
- data/spec/factories/workflow_states.rb +1 -1
- data/spec/features/batch_create_spec.rb +1 -1
- data/spec/features/create_work_spec.rb +3 -3
- data/spec/features/dashboard/collection_spec.rb +1 -1
- data/spec/forms/hyrax/forms/work_form_spec.rb +2 -2
- data/spec/forms/hyrax/generic_work_form_spec.rb +2 -2
- data/spec/presenters/hyrax/admin/users_presenter_spec.rb +16 -0
- data/spec/views/hyrax/admin/users/index.html.erb_spec.rb +32 -8
- data/spec/views/hyrax/base/edit.html.erb_spec.rb +1 -1
- data/template.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6f086851536da61deedbb9795675b44319ad7708
|
4
|
+
data.tar.gz: fdc35cc7f45c521f8b196b8642900270d4714ba9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d043eb1fd8223cf6f517c6eba02228c637bcd5179bd32fae7b2def80373c285e5b5c4c6ba6410585cc35b9e20f8f5ef5ac8da7db260c69aa2825a0a64c3d512
|
7
|
+
data.tar.gz: 305a94619c505e545a44d8c26ffc2e03168563c5caa0c6bb1ac7cd00b80afe822b1fad3b8a4e8b9e5e75cfe69516b738d6c1c440c13f45d47726ff2bbf371f7f
|
data/.gitignore
CHANGED
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.
|
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.
|
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:
|
@@ -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
|
data/app/views/_logo.html.erb
CHANGED
@@ -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"> <%= 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
|
-
|
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
|
|
@@ -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,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-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,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-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
|
-
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
<%= @presenter.last_accessed(user).to_formatted_s(:
|
39
|
-
|
40
|
-
|
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>
|
@@ -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
|
-
<
|
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[]"
|
20
|
-
</
|
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
|
-
<
|
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[]"
|
26
|
-
</
|
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
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
<
|
11
|
-
|
12
|
-
|
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
|
-
<
|
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[]"
|
20
|
-
</
|
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
|
-
<
|
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[]"
|
97
|
-
</
|
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=
|
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=
|
17
|
+
<i class="glyphicon glyphicon-star" aria-hidden="true"></i> <%= text %>
|
18
18
|
<% end %>
|
19
19
|
</li>
|
20
20
|
</ul>
|