Commit fd845675 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve project new item dropdown

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 59d7f4c9
...@@ -23,6 +23,6 @@ ...@@ -23,6 +23,6 @@
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: @ref, format: 'zip'), class: 'btn', rel: 'nofollow' do = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: @ref, format: 'zip'), class: 'btn', rel: 'nofollow' do
%i.fa.fa-download %i.fa.fa-download
= render 'projects/dropdown' = render 'projects/buttons/dropdown'
= render "shared/clone_panel" = render "shared/clone_panel"
- if current_user - if current_user
%span.dropdown %span.dropdown
%a.dropdown-toggle.btn.btn-new{href: '#', "data-toggle" => "dropdown"} %a.dropdown-toggle.btn.btn-new{href: '#', "data-toggle" => "dropdown"}
%i.fa.fa-bars %i.fa.fa-plus
%ul.dropdown-menu %ul.dropdown-menu
- if @project.issues_enabled && can?(current_user, :create_issue, @project) - if @project.issues_enabled && can?(current_user, :create_issue, @project)
%li %li
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
New git branch New git branch
%li %li
= link_to new_namespace_project_tag_path(@project.namespace, @project) do = link_to new_namespace_project_tag_path(@project.namespace, @project) do
%i.fa.fa-tag
New git tag New git tag
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment