-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for Rails 6, Hyrax 4, and Blacklight 7 (#782)
* add support for Rails 6, Hyrax 4, and Blacklight 7 this makes no attempt to ensure UI-layer support for BL7 and whatever bootstrap versions it requires (excepting whatever is tested by RSpec). the scope here is simply to make it *possible* for a Hyrax 4 application to install and use Bulkrax. * include current Hyrax CSS class and onclick in sidebar additions * change `.hidden` css classes to `.d-none` * bootstrap upgrade nav-link classes * update dry-monads to ~> 1.5.0 * re-run rubocop * begin testing on ruby 3, drop support for 2.6 * no more auto foreign key * update schema in test app * add support for Rails 6, Hyrax 4, and Blacklight 7 this makes no attempt to ensure UI-layer support for BL7 and whatever bootstrap versions it requires (excepting whatever is tested by RSpec). the scope here is simply to make it *possible* for a Hyrax 4 application to install and use Bulkrax. * include current Hyrax CSS class and onclick in sidebar additions * change `.hidden` css classes to `.d-none` * bootstrap upgrade nav-link classes * update dry-monads to ~> 1.5.0 * re-run rubocop * begin testing on ruby 3, drop support for 2.6 * no more auto foreign key * update schema in test app * trying to talk ci in to passing * add support for Rails 6, Hyrax 4, and Blacklight 7 this makes no attempt to ensure UI-layer support for BL7 and whatever bootstrap versions it requires (excepting whatever is tested by RSpec). the scope here is simply to make it *possible* for a Hyrax 4 application to install and use Bulkrax. * include current Hyrax CSS class and onclick in sidebar additions * change `.hidden` css classes to `.d-none` * bootstrap upgrade nav-link classes * update dry-monads to ~> 1.5.0 * re-run rubocop * begin testing on ruby 3, drop support for 2.6 * no more auto foreign key * update schema in test app * trying to talk ci in to passing * deal with differences in rails spec db handling for rails 6 --------- Co-authored-by: Alexandra Dunn <dunn.alex@gmail.com> Co-authored-by: Rob Kaufman <rob@notch8.com>
- Loading branch information
1 parent
1c39f9f
commit 657c6fe
Showing
19 changed files
with
71 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 12 additions & 4 deletions
16
app/views/hyrax/dashboard/sidebar/_bulkrax_sidebar_additions.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
<% if current_ability.can_import_works? %> | ||
<%= menu.nav_link(bulkrax.importers_path, | ||
title: t('bulkrax.admin.sidebar.importers')) do %> | ||
<%= menu.nav_link( | ||
bulkrax.importers_path, | ||
title: t('bulkrax.admin.sidebar.importers'), | ||
class: "nav-link", | ||
onclick: "dontChangeAccordion(event);") | ||
) do %> | ||
<span class="fa fa-cloud-upload" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('bulkrax.admin.sidebar.importers') %></span> | ||
<% end %> | ||
<% end %> | ||
<% if current_ability.can_export_works? %> | ||
<%= menu.nav_link(bulkrax.exporters_path, | ||
title: t('bulkrax.admin.sidebar.exporters')) do %> | ||
<%= menu.nav_link( | ||
bulkrax.exporters_path, | ||
title: t('bulkrax.admin.sidebar.exporters'), | ||
class: "nav-link", | ||
onclick: "dontChangeAccordion(event);") | ||
) do %> | ||
<span class="fa fa-cloud-download" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('bulkrax.admin.sidebar.exporters') %></span> | ||
<% end %> | ||
<% end %> |
Oops, something went wrong.