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
ee993dfc
Commit
ee993dfc
authored
Feb 15, 2014
by
Timm Drevensek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix branches/compare butten to directly diff to default branch
parent
5cf5c177
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
_branch.html.haml
app/views/projects/branches/_branch.html.haml
+4
-3
No files found.
app/views/projects/branches/_branch.html.haml
View file @
ee993dfc
...
...
@@ -11,9 +11,10 @@
.pull-right
-
if
can?
(
current_user
,
:download_code
,
@project
)
=
render
'projects/repositories/download_archive'
,
ref:
branch
.
name
,
btn_class:
'grouped btn-group-small'
=
link_to
project_compare_index_path
(
@project
,
from:
branch
.
name
,
to:
branch
.
name
),
class:
'btn grouped btn-small'
,
title:
"Compare"
do
%i
.icon-copy
Compare
-
if
branch
.
name
!=
@repository
.
root_ref
=
link_to
project_compare_index_path
(
@project
,
from:
@repository
.
root_ref
,
to:
branch
.
name
),
class:
'btn grouped btn-small'
,
method: :post
,
title:
"Compare"
do
%i
.icon-copy
Compare
-
if
can?
(
current_user
,
:admin_project
,
@project
)
&&
branch
.
name
!=
@repository
.
root_ref
=
link_to
project_branch_path
(
@project
,
branch
.
name
),
class:
'btn grouped btn-small remove-row'
,
method: :delete
,
data:
{
confirm:
'Removed branch cannot be restored. Are you sure?'
},
remote:
true
do
...
...
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