Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
9fff8f239f65
Unverified
Commit
fd845675
authored
Jul 13, 2015
by
Dmitriy Zaporozhets
Browse files
Improve project new item dropdown
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
35f7db1e51c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/views/projects/_home_panel.html.haml
View file @
9fff8f23
...
...
@@ -23,6 +23,6 @@
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
@ref
,
format:
'zip'
),
class:
'btn'
,
rel:
'nofollow'
do
%i
.fa.fa-download
=
render
'projects/dropdown'
=
render
'projects/
buttons/
dropdown'
=
render
"shared/clone_panel"
app/views/projects/_dropdown.html.haml
→
app/views/projects/
buttons/
_dropdown.html.haml
View file @
9fff8f23
-
if
current_user
%span
.dropdown
%a
.dropdown-toggle.btn.btn-new
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%i
.fa.fa-
bar
s
%i
.fa.fa-
plu
s
%ul
.dropdown-menu
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:create_issue
,
@project
)
%li
...
...
@@ -26,7 +26,6 @@
New git branch
%li
=
link_to
new_namespace_project_tag_path
(
@project
.
namespace
,
@project
)
do
%i
.fa.fa-tag
New git tag
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