diff --git a/app/assets/stylesheets/_bootstrap-default-overrides.scss b/app/assets/stylesheets/_bootstrap-default-overrides.scss index e975a58a86..604738d581 100644 --- a/app/assets/stylesheets/_bootstrap-default-overrides.scss +++ b/app/assets/stylesheets/_bootstrap-default-overrides.scss @@ -19,6 +19,9 @@ $warning: #565653 !default; $breadcrumb-active-color: #4c4c4c; $pagination-disabled-color: #4c4c4c; $blue: #0056B3 !default; +// Adjusts link text to show as underlined and then not underlined on hover +$link-decoration: underline !default; +$link-hover-decoration: none !default; // Date picker on safari placeholder text was misaligned @media screen { diff --git a/app/assets/stylesheets/hyrax/_forms.scss b/app/assets/stylesheets/hyrax/_forms.scss index 0812bf0bb7..7800e171ca 100644 --- a/app/assets/stylesheets/hyrax/_forms.scss +++ b/app/assets/stylesheets/hyrax/_forms.scss @@ -40,6 +40,7 @@ legend small { .select2-container .select2-choice > .select2-chosen { max-width: 26em; + overflow: auto; } form { diff --git a/app/services/hyrax/lock_manager.rb b/app/services/hyrax/lock_manager.rb index ed12701b3b..d534327eaa 100644 --- a/app/services/hyrax/lock_manager.rb +++ b/app/services/hyrax/lock_manager.rb @@ -16,11 +16,11 @@ def initialize(time_to_live, retry_count, retry_delay) ## # Blocks until lock is acquired or timeout. - def lock(key) + def lock(key, ttl: @ttl, retry_count: @retry_count, retry_delay: @retry_delay) returned_from_block = nil pool.then do |conn| - client(conn).lock(key, @ttl) do |locked| + client(conn, retry_count: retry_count, retry_delay: retry_delay).lock(key, ttl) do |locked| raise UnableToAcquireLockError unless locked returned_from_block = yield end @@ -31,16 +31,16 @@ def lock(key) Hyrax.logger.error(err.message) raise(ConnectionPool::TimeoutError, "Failed to acquire a lock from Redlock due to a Redis connection " \ - "timeout: #{err}. If you are using Redis via `ConnectionPool` " \ - "you may wish to increase the pool size.") + "timeout: #{err}. If you are using Redis via `ConnectionPool` " \ + "you may wish to increase the pool size.") end private ## # @api_private - def client(conn) - Redlock::Client.new([conn], retry_count: @retry_count, retry_delay: @retry_delay) + def client(conn, retry_count:, retry_delay:) + Redlock::Client.new([conn], retry_count: retry_count, retry_delay: retry_delay) end ## diff --git a/app/services/hyrax/lockable.rb b/app/services/hyrax/lockable.rb index 6fd0dfd47a..74c1a2999f 100644 --- a/app/services/hyrax/lockable.rb +++ b/app/services/hyrax/lockable.rb @@ -1,11 +1,12 @@ # frozen_string_literal: true +require 'forwardable' + module Hyrax module Lockable + extend Forwardable extend ActiveSupport::Concern - def acquire_lock_for(lock_key, &block) - lock_manager.lock(lock_key, &block) - end + def_delegator :lock_manager, :lock, :acquire_lock_for def lock_manager @lock_manager ||= LockManager.new( diff --git a/app/views/hyrax/dashboard/collections/_form_share.html.erb b/app/views/hyrax/dashboard/collections/_form_share.html.erb index aa19f11a77..926d86e0ee 100644 --- a/app/views/hyrax/dashboard/collections/_form_share.html.erb +++ b/app/views/hyrax/dashboard/collections/_form_share.html.erb @@ -25,10 +25,11 @@ class: 'form-control search-input' %>
- + <%= builder.select :access, access_options, { prompt: t('.select_a_role') }, + 'aria-labelledby': "add_group_as", class: 'form-control' %>
<% end %> @@ -56,10 +57,11 @@ placeholder: t('.search_for_a_user') %>
- + <%= builder.select :access, access_options, { prompt: t('.select_a_role') }, + 'aria-labelledby': "add_user_as", class: 'form-control' %>
<% end %> @@ -75,8 +77,8 @@

<%= t(".current_shared") %>

- - + + <%= render 'form_share_table', access: 'managers', filter: :manage? %> <%= render 'form_share_table', access: 'depositors', filter: :deposit? %> <%= render 'form_share_table', access: 'viewers', filter: :view? %> diff --git a/app/views/hyrax/pages/_form.html.erb b/app/views/hyrax/pages/_form.html.erb index 0314a81541..d0bcadaace 100644 --- a/app/views/hyrax/pages/_form.html.erb +++ b/app/views/hyrax/pages/_form.html.erb @@ -2,22 +2,22 @@