GitLab wurde aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Vielen Dank für Ihre Geduld.

Commit 5ad78cdb authored by Rubén Dávila's avatar Rubén Dávila Committed by Robert Speicher
Browse files

Use a custom title in the revert modal.

parent b8295fc3
......@@ -3,7 +3,7 @@
%a.close{href: "#", "data-dismiss" => "modal"} × Revert commit Revert: "#{title}"
= form_tag revert_namespace_project_commit_path(@project.namespace, @project, commit_id), method: :post, remote: false, class: 'form-horizontal js-create-dir-form js-requires-input' do
......@@ -13,4 +13,4 @@
diff_refs: @diff_refs
= render "projects/notes/notes_with_form"
- if can_collaborate_with_project?
= render "projects/commit/revert", commit_id:
= render "projects/commit/revert", commit_id:, title: @commit.title
......@@ -86,7 +86,7 @@
= render 'shared/issuable/sidebar', issuable: @merge_request
- if @merge_request.merge_commit_sha
= render "projects/commit/revert", commit_id: @merge_request.merge_commit_sha
= render "projects/commit/revert", commit_id: @merge_request.merge_commit_sha, title: @merge_request.title
var merge_request;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment