Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
5ad78cdb
Commit
5ad78cdb
authored
Feb 11, 2016
by
Rubén Dávila
Committed by
Robert Speicher
Feb 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a custom title in the revert modal.
parent
b8295fc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/views/projects/commit/_revert.html.haml
app/views/projects/commit/_revert.html.haml
+1
-1
app/views/projects/commit/show.html.haml
app/views/projects/commit/show.html.haml
+1
-1
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+1
-1
No files found.
app/views/projects/commit/_revert.html.haml
View file @
5ad78cdb
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
.modal-content
.modal-content
.modal-header
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h3
.page-title
Revert commit
%h3
.page-title
==
Revert: "
#{
title
}
"
.modal-body
.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_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
.form-group.branch
...
...
app/views/projects/commit/show.html.haml
View file @
5ad78cdb
...
@@ -13,4 +13,4 @@
...
@@ -13,4 +13,4 @@
diff_refs:
@diff_refs
diff_refs:
@diff_refs
=
render
"projects/notes/notes_with_form"
=
render
"projects/notes/notes_with_form"
-
if
can_collaborate_with_project?
-
if
can_collaborate_with_project?
=
render
"projects/commit/revert"
,
commit_id:
@commit
.
id
=
render
"projects/commit/revert"
,
commit_id:
@commit
.
id
,
title:
@commit
.
title
app/views/projects/merge_requests/_show.html.haml
View file @
5ad78cdb
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
=
render
'shared/issuable/sidebar'
,
issuable:
@merge_request
=
render
'shared/issuable/sidebar'
,
issuable:
@merge_request
-
if
@merge_request
.
merge_commit_sha
-
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
:javascript
var
merge_request
;
var
merge_request
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment