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

Use a custom title in the revert modal.

parent b8295fc3
......@@ -3,7 +3,7 @@
.modal-content
.modal-header
%a.close{href: "#", "data-dismiss" => "modal"} ×
%h3.page-title Revert commit
%h3.page-title== Revert: "#{title}"
.modal-body
= 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
.form-group.branch
......
......@@ -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: @commit.id
= render "projects/commit/revert", commit_id: @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
:javascript
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