Skip to content

Commit

Permalink
Merge pull request #3182 from samvera/1258-hide-icons-from-screen-rea…
Browse files Browse the repository at this point in the history
…ders-with-associated-text

Add aria-hidden = true attribute to helper icons for accessibility im…
  • Loading branch information
dlpierce committed Aug 16, 2018
2 parents acbde00 + c2e41aa commit 0bdb1d5
Show file tree
Hide file tree
Showing 50 changed files with 86 additions and 86 deletions.
2 changes: 1 addition & 1 deletion app/presenters/hyrax/collapsable_section_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def button_tag
href: "##{id}",
'aria-expanded' => open,
'aria-controls' => id) do
safe_join([content_tag(:span, '', class: icon_class),
safe_join([content_tag(:span, '', class: icon_class, 'aria-hidden' => true),
content_tag(:span, text)], ' ')
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/_logo.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a id="logo" class="navbar-brand" href="<%= hyrax.root_path %>" data-no-turbolink="true">
<span class="glyphicon glyphicon-globe" role="img" aria-label="<%= application_name %>"></span>
<span class="glyphicon glyphicon-globe" role="img" aria-label="<%= application_name %>" aria-hidden="true"></span>
<span class="institution_name"><%= application_name %></span>
</a>
2 changes: 1 addition & 1 deletion app/views/_user_util_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<span class="sr-only"><%= t("hyrax.toolbar.profile.sr_action") %></span>
<span class="hidden-xs">&nbsp;<%= current_user.name %></span>
<span class="sr-only"> <%= t("hyrax.toolbar.profile.sr_target") %></span>
<span class="fa fa-user"></span>
<span class="fa fa-user" aria-hidden="true"></span>
<span class="caret"></span>
<% end %>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog/_thumbnail_list_collection.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="col-md-2">
<span class="<%= Hyrax::ModelIcon.css_class_for(Collection) %> collection-icon-search"></span>
<span class="<%= Hyrax::ModelIcon.css_class_for(Collection) %> collection-icon-search" aria-hidden="true"></span>
</div>
6 changes: 3 additions & 3 deletions app/views/hyrax/admin/admin_sets/_show_actions.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
<div class="col-sm-4">
<div class="pull-right">
<%= link_to edit_admin_admin_set_path(presenter), class: 'btn btn-primary' do %>
<span class="fa fa-edit"></span> <%= t(:'helpers.action.edit') %>
<span class="fa fa-edit" aria-hidden="true"></span> <%= t(:'helpers.action.edit') %>
<% end %>
<% if presenter.disable_delete? %>
<span title="<%= presenter.disabled_message %>">
<%= link_to admin_admin_set_path(presenter), class: 'btn btn-danger disabled' do %>
<span class="fa fa-remove"></span> <%= t(:'helpers.action.delete') %>
<span class="fa fa-remove" aria-hidden="true"></span> <%= t(:'helpers.action.delete') %>
<% end %>
</span>
<% else %>
<%= link_to admin_admin_set_path(presenter), class: 'btn btn-danger', data: { confirm: t('.confirm_delete'), method: :delete } do %>
<span class="fa fa-remove"></span> <%= t(:'helpers.action.delete') %>
<span class="fa fa-remove" aria-hidden="true"></span> <%= t(:'helpers.action.delete') %>
<% end %>
<% end %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/admin/admin_sets/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% provide :page_header do %>
<h1><span class="fa fa-edit"></span> <%= t('.header', title: @form.title) %></h1>
<h1><span class="fa fa-edit" aria-hidden="true"></span> <%= t('.header', title: @form.title) %></h1>
<% end %>

<div class="row">
Expand Down
4 changes: 2 additions & 2 deletions app/views/hyrax/admin/admin_sets/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<% provide :page_header do %>
<h1><span class="fa fa-sitemap"></span> Administrative Sets</h1>
<h1><span class="fa fa-sitemap" aria-hidden="true"></span> Administrative Sets</h1>
<% if can? :create, AdminSet %>
<div class="pull-right">
<%= link_to hyrax.new_admin_admin_set_path, class: 'btn btn-primary' do %>
<span class="fa fa-edit"></span> <%= t(:'helpers.action.admin_set.new') %>
<span class="fa fa-edit" aria-hidden="true"></span> <%= t(:'helpers.action.admin_set.new') %>
<% end %>
</div>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/admin/admin_sets/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% provide :page_header do %>
<h1><span class="fa fa-edit"></span> <%= t('.header') %></h1>
<h1><span class="fa fa-edit" aria-hidden="true"></span> <%= t('.header') %></h1>
<% end %>

<div class="row">
Expand Down
4 changes: 2 additions & 2 deletions app/views/hyrax/admin/admin_sets/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% provide :page_header do %>
<h1><span class="fa fa-sitemap"></span> <%= t('.header') %></h1>
<h1><span class="fa fa-sitemap" aria-hidden="true"></span> <%= t('.header') %></h1>
<% end %>

<div class="row">
Expand All @@ -14,7 +14,7 @@
<%= render_thumbnail_tag @presenter.solr_document, {}, suppress_link: true %>
</div>
<% else %>
<span class="fa fa-sitemap collection-icon-search"></span>
<span class="fa fa-sitemap collection-icon-search" aria-hidden="true"></span>
<% end %>
</div>
<div class="col-md-10">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/admin/appearances/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% provide :page_header do %>
<h1><span class="fa fa-paint-brush"></span> <%= t('.header') %></h1>
<h1><span class="fa fa-paint-brush" aria-hidden="true"></span> <%= t('.header') %></h1>
<% end %>

<div class="panel panel-default">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/admin/collection_types/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="collection-types-wrapper">
<% provide :page_title, construct_page_title( t('.header') ) %>
<% provide :page_header do %>
<h1><span class="fa fa-folder-open"></span> <%= t('.header') %>: <%= @form.title %></h1>
<h1><span class="fa fa-folder-open" aria-hidden="true"></span> <%= t('.header') %>: <%= @form.title %></h1>
<% end %>

<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/admin/collection_types/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="collection-types-wrapper">
<% # for modal dialogue setup and interaction see app/assets/javascripts/collection_types.es6 %>
<% provide :page_header do %>
<h1><span class="fa fa-folder-open"></span> <%= t('.header') %></h1>
<h1><span class="fa fa-folder-open" aria-hidden="true"></span> <%= t('.header') %></h1>
<% end %>
<div class="panel panel-default">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/admin/collection_types/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% provide :page_title, construct_page_title( t('.header') ) %>
<% provide :page_header do %>
<h1><span class="fa fa-folder-open"></span> <%= t('.header') %></h1>
<h1><span class="fa fa-folder-open" aria-hidden="true"></span> <%= t('.header') %></h1>
<% end %>

<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/admin/features/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% provide :page_header do %>
<h1><span class="fa fa-wrench"></span> <%= t('.header') %></h1>
<h1><span class="fa fa-wrench" aria-hidden="true"></span> <%= t('.header') %></h1>
<% end %>
<div class="flip row">
<div class="col-md-12">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/admin/users/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% provide :page_header do %>
<h1><span class="fa fa-user"></span> <%= t('hyrax.admin.users.index.title') %></h1>
<h1><span class="fa fa-user" aria-hidden="true"></span> <%= t('hyrax.admin.users.index.title') %></h1>
<% end %>

<div class="panel panel-default users-listing">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/admin/workflow_roles/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% provide :page_header do %>
<h1><span class="fa fa-users"></span> <%= t("hyrax.admin.workflow_roles.header") %></h1>
<h1><span class="fa fa-users" aria-hidden="true"></span> <%= t("hyrax.admin.workflow_roles.header") %></h1>
<% end %>

<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/base/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% provide :page_title, curation_concern_page_title(curation_concern) %>
<% provide :page_header do %>
<h1><span class="fa fa-edit"></span><%= t("hyrax.works.update.header") %></h1>
<h1><span class="fa fa-edit" aria-hidden="true"></span><%= t("hyrax.works.update.header") %></h1>
<% end %>
<%= render 'form' %>
2 changes: 1 addition & 1 deletion app/views/hyrax/collections/_list_works.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@

<td class="date"><%= document.date_uploaded %></td>
<td class='text-center'>
<span class="fa <%= current_user.trophies.where(work_id: document.id).exists? ? 'fa-star highlighted-work' : 'fa-star-o trophy-off' %>"></span></td>
<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>
<td><%= render_visibility_link document %></td>
</tr>
2 changes: 1 addition & 1 deletion app/views/hyrax/collections/_media_display.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
alt: "",
role: "presentation" %>
<% else %>
<span class="<%= Hyrax::ModelIcon.css_class_for(Collection) %> collection-icon-search"></span>
<span class="<%= Hyrax::ModelIcon.css_class_for(Collection) %> collection-icon-search" aria-hidden="true"></span>
<% end %>
2 changes: 1 addition & 1 deletion app/views/hyrax/content_blocks/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% content_for :page_header do %>
<h1><span class="fa fa-square-o"></span> <%= t(:'hyrax.admin.sidebar.content_blocks') %></h1>
<h1><span class="fa fa-square-o" aria-hidden="true"></span> <%= t(:'hyrax.admin.sidebar.content_blocks') %></h1>
<% end %>

<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/dashboard/collections/_list_works.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<td class="date"><%= document.date_uploaded %></td>
<td class='text-center'>
<span class="fa <%= current_user.trophies.where(work_id: document.id).exists? ? 'fa-star highlighted-work' : 'fa-star-o trophy-off' %>"></span></td>
<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>
<td><%= render_visibility_link document %></td>

<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
class: "itemicon itemedit",
title: t('hyrax.collection.document_list.edit'),
id: "edit_work_link_#{document.id}" do %>
<i class='glyphicon glyphicon-pencil'></i> <%= t('hyrax.collection.document_list.edit') %>
<i class="glyphicon glyphicon-pencil" aria-hidden="true"></i> <%= t('hyrax.collection.document_list.edit') %>
<% end %>
</li>
<% end %>
<li>
<%= display_trophy_link(current_user, document.id) do |text| %>
<i class='glyphicon glyphicon-star'></i> <%= text %>
<i class="glyphicon glyphicon-star" aria-hidden="true"></i> <%= text %>
<% end %>
</li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@

<li role="menuitem" tabindex="-1">
<%= display_trophy_link @user, document.id do |text| %>
<i class='glyphicon glyphicon-star'></i> <%= text %>
<i class="glyphicon glyphicon-star" aria-hidden="true"></i> <%= text %>
<% end %>
</li>
<li role="menuitem" tabindex="-1">
<%= link_to(hyrax.new_work_transfer_path(document.id), class: 'itemicon itemtransfer', title: 'Transfer Ownership of Work') do %>
<i aria-hidden="true" class='glyphicon glyphicon-transfer'></i>
<i aria-hidden="true" class="glyphicon glyphicon-transfer"></i>
<span> Transfer Ownership of Work </span>
<% end %>
</li>
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/dashboard/collections/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% provide :page_title, construct_page_title( t('.header', type_title: @collection.collection_type.title, title: @form.title.first) ) %>
<% provide :page_header do %>
<h1><span class="fa fa-edit"></span><%= t('.header', type_title: @collection.collection_type.title, title: @form.title.first) %></h1>
<h1><span class="fa fa-edit" aria-hidden="true"></span><%= t('.header', type_title: @collection.collection_type.title, title: @form.title.first) %></h1>
<% end %>

<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/dashboard/collections/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% provide :page_title, construct_page_title( t('.header', type_title: @collection.collection_type.title) ) %>
<% provide :page_header do %>
<h1><span class="fa fa-edit"></span> <%= t('.header', type_title: @collection.collection_type.title) %> </h1>
<h1><span class="fa fa-edit" aria-hidden="true"></span> <%= t('.header', type_title: @collection.collection_type.title) %> </h1>
<% end %>

<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/dashboard/collections/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% provide :page_title, construct_page_title(@presenter.title) %>
<% provide :page_header do %>
<h1><span class="fa fa-file"></span> <%= t('.header') %></h1>
<h1><span class="fa fa-file" aria-hidden="true"></span> <%= t('.header') %></h1>
<% end %>

<div class="collections-wrapper">
Expand Down
4 changes: 2 additions & 2 deletions app/views/hyrax/dashboard/profiles/_edit_primary.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
</div><!-- .form-group -->

<div class="form-group">
<%= f.label :twitter_handle, '<i class="fa fa-twitter"></i> Twitter Handle'.html_safe, class: 'col-xs-4 control-label' %>
<%= f.label :twitter_handle, '<i class="fa fa-twitter" aria-hidden="true"></i> Twitter Handle'.html_safe, class: 'col-xs-4 control-label' %>
<div class="col-xs-8">
<%= f.text_field :twitter_handle, class: "form-control" %>
</div>
</div><!-- .form-group -->

<div class="form-group">
<%= f.label :facebook_handle, '<i class="fa fa-facebook"></i> Facebook Handle'.html_safe, class: 'col-xs-4 control-label' %>
<%= f.label :facebook_handle, '<i class="fa fa-facebook" aria-hidden="true"></i> Facebook Handle'.html_safe, class: 'col-xs-4 control-label' %>
<div class="col-xs-8">
<%= f.text_field :facebook_handle, class: "form-control" %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/dashboard/profiles/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% provide :page_header do %>
<h1><span class="fa fa-id-card"></span> Edit Profile</h1>
<h1><span class="fa fa-id-card" aria-hidden="true"></span> Edit Profile</h1>
<% end %>
<div class="panel panel-default">
<div class="panel-body">
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/dashboard/profiles/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% provide :page_header do %>
<h1><span class="fa fa-id-card"></span> <%= t("hyrax.admin.sidebar.profile") %></h1>
<h1><span class="fa fa-id-card" aria-hidden="true"></span> <%= t("hyrax.admin.sidebar.profile") %></h1>
<% if can? :edit, current_user %>
<div class="pull-right">
<%= link_to hyrax.edit_dashboard_profile_path(@user), class: "btn btn-primary" do %>
Expand Down
10 changes: 5 additions & 5 deletions app/views/hyrax/dashboard/sidebar/_activity.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@
open: menu.user_activity_section? do %>
<%= menu.nav_link(hyrax.dashboard_profile_path(current_user),
also_active_for: hyrax.edit_dashboard_profile_path(current_user)) do %>
<span class="fa fa-id-card"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.profile') %></span>
<span class="fa fa-id-card" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.profile') %></span>
<% end %>
<%= menu.nav_link(hyrax.notifications_path) do %>
<span class="fa fa-bell"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.notifications') %></span>
<span class="fa fa-bell" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.notifications') %></span>
<% end %>
<%= menu.nav_link(hyrax.transfers_path) do %>
<span class="fa fa-arrows-h"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.transfers') %></span>
<span class="fa fa-arrows-h" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.transfers') %></span>
<% end %>
<% if Flipflop.proxy_deposit? %>
<%= menu.nav_link(hyrax.depositors_path) do %>
<span class="fa fa-users"></span> <span class="sidebar-action-text"><%= t('hyrax.dashboard.manage_proxies') %></span>
<span class="fa fa-users" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.dashboard.manage_proxies') %></span>
<% end %>
<% end %>
<% end %>
</li>

<% if can? :read, :admin_dashboard %>
<%= menu.nav_link(hyrax.admin_stats_path) do %>
<span class="fa fa-bar-chart"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.statistics') %></span>
<span class="fa fa-bar-chart" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.statistics') %></span>
<% end %>
<% end %>
12 changes: 6 additions & 6 deletions app/views/hyrax/dashboard/sidebar/_configuration.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@
open: menu.settings_section? do %>
<% if can?(:update, :appearance) %>
<%= menu.nav_link(hyrax.admin_appearance_path) do %>
<span class="fa fa-paint-brush"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.appearance') %></span>
<span class="fa fa-paint-brush" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.appearance') %></span>
<% end %>
<% end %>
<% if can?(:manage, :collection_types) %>
<%= menu.nav_link(hyrax.admin_collection_types_path) do %>
<span class="fa fa-folder-open"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.collection_types') %></span>
<span class="fa fa-folder-open" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.collection_types') %></span>
<% end %>
<% end %>
<% if can?(:manage, Hyrax::Feature) %>
<%= menu.nav_link(hyrax.edit_pages_path) do %>
<span class="fa fa-file-text-o"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.pages') %></span>
<span class="fa fa-file-text-o" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.pages') %></span>
<% end %>
<%= menu.nav_link(hyrax.edit_content_blocks_path) do %>
<span class="fa fa-square-o"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.content_blocks') %></span>
<span class="fa fa-square-o" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.content_blocks') %></span>
<% end %>
<%= menu.nav_link(hyrax.admin_features_path) do %>
<span class="fa fa-wrench"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.technical') %></span>
<span class="fa fa-wrench" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.technical') %></span>
<% end %>
<% end %>
<% end %>
</li>
<% if can?(:manage, Sipity::WorkflowResponsibility) %>
<%= menu.nav_link(hyrax.admin_workflow_roles_path) do %>
<span class="fa fa-users"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.workflow_roles') %></span>
<span class="fa fa-users" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.workflow_roles') %></span>
<% end %>
<% end # end of configuration block %>
<% end %>
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

<%= menu.nav_link(hyrax.my_collections_path,
also_active_for: hyrax.dashboard_collections_path) do %>
<span class="fa fa-folder-open"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.collections') %></span>
<span class="fa fa-folder-open" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.collections') %></span>
<% end %>
<%= menu.nav_link(hyrax.my_works_path,
also_active_for: hyrax.dashboard_works_path) do %>
<span class="fa fa-file"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.works') %></span>
<span class="fa fa-file" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.works') %></span>
<% end %>
8 changes: 4 additions & 4 deletions app/views/hyrax/dashboard/sidebar/_tasks.html.erb
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<% if can? :review, :submissions %>
<li class="h5"><%= t('hyrax.admin.sidebar.tasks') %></li>
<%= menu.nav_link(hyrax.admin_workflows_path) do %>
<span class="fa fa-flag"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.workflow_review') %></span>
<span class="fa fa-flag" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.workflow_review') %></span>
<% end %>
<% end %>
<% if can? :manage, User %>
<%= menu.nav_link(hyrax.admin_users_path) do %>
<span class="fa fa-user"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.users') %></span>
<span class="fa fa-user" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.users') %></span>
<% end %>
<% end %>
<% if can? :read, :admin_dashboard %>
<%= menu.nav_link(hyrax.embargoes_path) do %>
<span class="fa fa-flag"></span> <span class="sidebar-action-text"><%= t('hyrax.embargoes.index.manage_embargoes') %></span>
<span class="fa fa-flag" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.embargoes.index.manage_embargoes') %></span>
<% end %>
<%= menu.nav_link(hyrax.leases_path) do %>
<span class="fa fa-flag"></span> <span class="sidebar-action-text"><%= t('hyrax.leases.index.manage_leases') %></span>
<span class="fa fa-flag" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.leases.index.manage_leases') %></span>
<% end %>
<% end %>
2 changes: 1 addition & 1 deletion app/views/hyrax/depositors/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% provide :page_header do %>
<h1><span class="fa fa-users"></span> <%= t("hyrax.dashboard.manage_proxies") %></h1>
<h1><span class="fa fa-users" aria-hidden="true"></span> <%= t("hyrax.dashboard.manage_proxies") %></h1>
<% end %>

<div class="row">
Expand Down
Loading

0 comments on commit 0bdb1d5

Please sign in to comment.