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
Boxiang Sun
gitlab-ce
Commits
86e25595
Commit
86e25595
authored
Feb 24, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix btn-group align
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
aff7ac37
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
app/assets/stylesheets/generic/buttons.scss
app/assets/stylesheets/generic/buttons.scss
+10
-0
app/views/projects/branches/_branch.html.haml
app/views/projects/branches/_branch.html.haml
+1
-1
app/views/projects/tags/_tag.html.haml
app/views/projects/tags/_tag.html.haml
+1
-1
No files found.
app/assets/stylesheets/generic/buttons.scss
View file @
86e25595
...
...
@@ -177,5 +177,15 @@
}
}
.btn-group
{
&
.btn-grouped
{
margin-right
:
7px
;
float
:
left
;
&
:last-child
{
margin-right
:
0px
;
}
}
}
.btn-group-small
>
.btn
{
@extend
.btn.btn-small
;
}
.btn-group-tiny
>
.btn
{
@extend
.btn.btn-tiny
;
}
app/views/projects/branches/_branch.html.haml
View file @
86e25595
...
...
@@ -10,7 +10,7 @@
%i
.icon-lock
.pull-right
-
if
can?
(
current_user
,
:download_code
,
@project
)
=
render
'projects/repositories/download_archive'
,
ref:
branch
.
name
,
btn_class:
'grouped btn-group-small'
=
render
'projects/repositories/download_archive'
,
ref:
branch
.
name
,
btn_class:
'
btn-
grouped btn-group-small'
-
if
branch
.
name
!=
@repository
.
root_ref
=
link_to
project_compare_index_path
(
@project
,
from:
@repository
.
root_ref
,
to:
branch
.
name
),
class:
'btn btn-grouped btn-small'
,
method: :post
,
title:
"Compare"
do
%i
.icon-copy
...
...
app/views/projects/tags/_tag.html.haml
View file @
86e25595
...
...
@@ -15,7 +15,7 @@
%span
.pull-right
-
if
can?
current_user
,
:download_code
,
@project
=
render
'projects/repositories/download_archive'
,
ref:
tag
.
name
,
btn_class:
'grouped btn-group-small'
=
render
'projects/repositories/download_archive'
,
ref:
tag
.
name
,
btn_class:
'
btn-
grouped btn-group-small'
-
if
can?
(
current_user
,
:admin_project
,
@project
)
=
link_to
project_tag_path
(
@project
,
tag
.
name
),
class:
'btn btn-small remove-row grouped'
,
method: :delete
,
data:
{
confirm:
'Removed tag cannot be restored. Are you sure?'
},
remote:
true
do
%i
.icon-trash
...
...
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