Skip to content

Fix repository settings form template to work with redmine 4.x #759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/controllers/redmine_git_hosting_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def render_with_api
def render_js_redirect
respond_to do |format|
format.js { render js: "window.location = #{success_url.to_json};" }
format.html do
redirect_to success_url
end
end
end

Expand Down
1 change: 1 addition & 0 deletions app/views/repository_deployment_credentials/edit.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= labelled_form_for :repository_deployment_credential, @credential,
url: repository_deployment_credential_path(@repository, @credential),
authenticity_token: form_authenticity_token,
html: { method: :put, class: 'tabular', remote: true } do |f|

.flash-messages = error_messages_for 'credential'
Expand Down
1 change: 1 addition & 0 deletions app/views/repository_deployment_credentials/new.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= labelled_form_for :repository_deployment_credential, @credential,
url: repository_deployment_credentials_path(@repository),
authenticity_token: form_authenticity_token,
html: { method: :post, class: 'tabular', remote: true } do |f|

.flash-messages= error_messages_for 'credential'
Expand Down
1 change: 1 addition & 0 deletions app/views/repository_git_config_keys/edit.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= labelled_form_for :repository_git_config_key, @git_config_key,
url: repository_git_config_key_path(@repository, @git_config_key),
authenticity_token: form_authenticity_token,
html: { method: :put, class: 'tabular', remote: true } do |f|

= render partial: 'form', locals: { f: f }
1 change: 1 addition & 0 deletions app/views/repository_git_config_keys/new.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= labelled_form_for :repository_git_config_key, @git_config_key,
url: repository_git_config_keys_path(@repository),
authenticity_token: form_authenticity_token,
html: { method: :post, class: 'tabular', remote: true } do |f|

= render partial: 'form', locals: { f: f }
1 change: 1 addition & 0 deletions app/views/repository_git_extras/move.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ h2 = l(:label_move_repository, repo_name: @repository.gitolite_repository_name)
.box
= labelled_form_for :repository_mover, @move_repository_form,
url: move_repository_git_extras_path(@repository),
authenticity_token: form_authenticity_token,
html: { method: :post, class: 'tabular', data: { confirm: l(:text_are_you_sure) } } do |f|

.flash-messages = error_messages_for 'move_repository_form'
Expand Down
1 change: 1 addition & 0 deletions app/views/repository_mirrors/edit.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= labelled_form_for :repository_mirror, @mirror,
url: repository_mirror_path(@repository, @mirror),
authenticity_token: form_authenticity_token,
html: { method: :put, class: 'tabular', remote: true } do |f|

= render partial: 'form', locals: { f: f }
1 change: 1 addition & 0 deletions app/views/repository_mirrors/new.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= labelled_form_for :repository_mirror, @mirror,
url: repository_mirrors_path(@repository),
authenticity_token: form_authenticity_token,
html: { method: :post, class: 'tabular', remote: true } do |f|

= render partial: 'form', locals: { f: f }
1 change: 1 addition & 0 deletions app/views/repository_post_receive_urls/edit.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= labelled_form_for :repository_post_receive_url, @post_receive_url,
url: repository_post_receive_url_path(@repository, @post_receive_url),
authenticity_token: form_authenticity_token,
html: { method: :put, class: 'tabular', remote: true } do |f|

= render partial: 'form', locals: { f: f }
1 change: 1 addition & 0 deletions app/views/repository_post_receive_urls/new.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= labelled_form_for :repository_post_receive_url, @post_receive_url,
url: repository_post_receive_urls_path(@repository),
authenticity_token: form_authenticity_token,
html: { method: :post, class: 'tabular', remote: true } do |f|

= render partial: 'form', locals: { f: f }
1 change: 1 addition & 0 deletions app/views/repository_protected_branches/edit.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= labelled_form_for :repository_protected_branche, @protected_branch,
url: repository_protected_branch_path(@repository, @protected_branch),
authenticity_token: form_authenticity_token,
html: { method: :put, class: 'tabular', remote: true } do |f|

= render partial: 'form', locals: { f: f }
1 change: 1 addition & 0 deletions app/views/repository_protected_branches/new.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= labelled_form_for :repository_protected_branche, @protected_branch,
url: repository_protected_branches_path(@repository),
authenticity_token: form_authenticity_token,
html: { method: :post, class: 'tabular', remote: true } do |f|

= render partial: 'form', locals: { f: f }