-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into merge-main-into-i35
* main: (29 commits) 🧹 Specify knapsack required branch Revert "knapsack gemfile additions or replacement" Add missing logo translation ♻️ Updating Gemfile to reflect pointing to main 🧹 Fix badge status for feature 🧹 Revisiting translations 🐛 Restore translation working on fixing redis deploy Removing file that came along for the ride Fixing roles service 🐛 Use non-deprecated and non-removed method Fixing locale_for tests to reflect I18n behavior update version to 6.0.0rc1 (#2137) Applying changes in main to this work Resolving menu structure for site configuration Removing unneeded file 🎁 fixes to unblock deploys 🐛 Add placement_class for masthead rendering 🐛 Add tests for all defined color methods knapsack gemfile additions or replacement ...
- Loading branch information
Showing
155 changed files
with
3,497 additions
and
560 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# frozen_string_literal: true | ||
|
||
module Admin | ||
class RolesServiceController < ApplicationController | ||
layout 'hyrax/dashboard' | ||
|
||
def index | ||
authorize! :update, RolesService | ||
add_breadcrumb t(:'hyrax.controls.home'), root_path | ||
add_breadcrumb t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path | ||
add_breadcrumb t(:'hyrax.admin.sidebar.roles_service_jobs'), main_app.admin_roles_service_jobs_path | ||
end | ||
|
||
# post "admin/roles_service/:job_name_key | ||
def update_roles | ||
authorize! :update, RolesService | ||
job = RolesService.valid_jobs.fetch(params[:job_name_key]) | ||
|
||
job.perform_later | ||
|
||
respond_to do |wants| | ||
wants.html { redirect_to main_app.admin_roles_service_jobs_path, notice: "#{job} has been submitted." } | ||
wants.json { render json: { notice: "#{job} has been submitted." }, status: :ok } | ||
end | ||
end | ||
end | ||
end |
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
Oops, something went wrong.