BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
79a4ed15
Commit
79a4ed15
authored
Nov 25, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change "Get Patch" buttons to dropdowns orffering patches and diffs
parent
267b18de
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
_commit_box.html.haml
app/views/commits/_commit_box.html.haml
+7
-2
_mr_title.html.haml
app/views/merge_requests/show/_mr_title.html.haml
+7
-2
No files found.
app/views/commits/_commit_box.html.haml
View file @
79a4ed15
...
...
@@ -5,9 +5,14 @@
%span
.btn.disabled.grouped
%i
.icon-comment
=
@notes_count
=
link_to
project_commit_path
(
@project
,
@commit
,
format: :patch
),
class:
"btn small grouped"
do
.left.btn-group
%a
.btn.small.grouped.dropdown-toggle
{
data:
{
toggle: :dropdown
}
}
%i
.icon-download-alt
Get Patch
Download as
%span
.caret
%ul
.dropdown-menu
%li
=
link_to
"Email Patches"
,
project_commit_path
(
@project
,
@commit
,
format: :patch
)
%li
=
link_to
"Plain Diff"
,
project_commit_path
(
@project
,
@commit
,
format: :diff
)
=
link_to
project_tree_path
(
@project
,
@commit
),
class:
"browse-button primary grouped"
do
%strong
Browse Code »
%h3
.commit-title.page_title
...
...
app/views/merge_requests/show/_mr_title.html.haml
View file @
79a4ed15
...
...
@@ -13,9 +13,14 @@
=
"MERGED"
-
if
can?
(
current_user
,
:modify_merge_request
,
@merge_request
)
-
if
@merge_request
.
open?
=
link_to
project_merge_request_path
(
@project
,
@merge_request
,
format: :patch
),
class:
"btn grouped"
do
.left.btn-group
%a
.btn.grouped.dropdown-toggle
{
data:
{
toggle: :dropdown
}
}
%i
.icon-download-alt
Get Patch
Download as
%span
.caret
%ul
.dropdown-menu
%li
=
link_to
"Email Patches"
,
project_merge_request_path
(
@project
,
@merge_request
,
format: :patch
)
%li
=
link_to
"Plain Diff"
,
project_merge_request_path
(
@project
,
@merge_request
,
format: :diff
)
=
link_to
'Close'
,
project_merge_request_path
(
@project
,
@merge_request
,
merge_request:
{
closed:
true
},
status_only:
true
),
method: :put
,
class:
"btn grouped danger"
,
title:
"Close 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