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
@@ -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=
|
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=
|
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> <%= 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,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
|
-
|
2
|
+
<% ul_id = 'collection-action-dropdown-ul-' + id %>
|
3
3
|
|
4
|
-
|
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,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=
|
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"
|
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
|
<% 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
|
|