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
Tatuya Kamada
gitlab-ce
Commits
27536459
Commit
27536459
authored
Oct 04, 2016
by
tauriedavis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
19499 Update project dropdowns
parent
3bf0d143
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+2
-1
app/views/projects/buttons/_download.html.haml
app/views/projects/buttons/_download.html.haml
+2
-2
app/views/projects/buttons/_dropdown.html.haml
app/views/projects/buttons/_dropdown.html.haml
+2
-1
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+2
-3
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
27536459
...
...
@@ -146,7 +146,8 @@
}
.project-repo-btn-group
,
.notification-dropdown
{
.notification-dropdown
,
.project-dropdown
{
margin-left
:
10px
;
}
...
...
app/views/projects/buttons/_download.html.haml
View file @
27536459
-
if
!
project
.
empty_repo?
&&
can?
(
current_user
,
:download_code
,
project
)
%span
.btn-group
{
class:
'hidden-xs hidden-sm btn-grouped
'
}
%span
{
class:
'hidden-xs hidden-sm
'
}
.dropdown.inline
%button
.btn
{
'data-toggle'
=>
'dropdown'
}
=
icon
(
'download'
)
%span
.caret
=
icon
(
"caret-down"
)
%span
.sr-only
Select Archive Format
%ul
.dropdown-menu.dropdown-menu-align-right
{
role:
'menu'
}
...
...
app/views/projects/buttons/_dropdown.html.haml
View file @
27536459
-
if
current_user
.
btn-group
.
dropdown.inline.project-dropdown
%a
.btn.dropdown-toggle
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
=
icon
(
'plus'
)
=
icon
(
"caret-down"
)
%ul
.dropdown-menu.dropdown-menu-align-right.project-home-dropdown
-
can_create_issue
=
can?
(
current_user
,
:create_issue
,
@project
)
-
merge_project
=
can?
(
current_user
,
:create_merge_request
,
@project
)
?
@project
:
(
current_user
&&
current_user
.
fork_of
(
@project
))
...
...
app/views/projects/show.html.haml
View file @
27536459
...
...
@@ -71,7 +71,6 @@
=
render
'shared/members/access_request_buttons'
,
source:
@project
=
render
"projects/buttons/koding"
.btn-group.project-repo-btn-group
=
render
'projects/buttons/download'
,
project:
@project
,
ref:
@ref
=
render
'projects/buttons/dropdown'
...
...
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