Commit ca244c35 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Reorder buttons on clone panel of project

parent afc3c216
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
.pull-right .pull-right
- unless @project.empty_repo? - unless @project.empty_repo?
- if can? current_user, :fork_project, @project - if can? current_user, :fork_project, @project
= link_to fork_project_path(@project), title: "Fork", class: "btn small grouped", method: "POST" do = link_to fork_project_path(@project), title: "Fork", class: "btn grouped", method: "POST" do
%i.icon-copy
Fork Fork
- if can? current_user, :download_code, @project - if can? current_user, :download_code, @project
= link_to archive_project_repository_path(@project), class: "btn grouped" do = link_to archive_project_repository_path(@project), class: "btn grouped" do
...@@ -15,28 +16,5 @@ ...@@ -15,28 +16,5 @@
= link_to tags_project_repository_path(@project), class: "btn grouped only-wide", title: 'Git Tags' do = link_to tags_project_repository_path(@project), class: "btn grouped only-wide", title: 'Git Tags' do
%i.icon-tags %i.icon-tags
Tags
.dropdown.pull-right
%a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"}
%i.icon-plus
Add new
%b.caret
%ul.dropdown-menu
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
%li
= link_to url_for_new_issue, title: "New Issue" do
Issue
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
%li
= link_to new_project_merge_request_path(@project), title: "New Merge Request" do
Merge Request
- if @project.snippets_enabled && can?(current_user, :write_snippet, @project)
%li
= link_to new_project_snippet_path(@project), title: "New Snippet" do
Snippet
- if can?(current_user, :admin_team_member, @project)
%li.divider
%li
= link_to new_project_team_member_path(@project), title: "New Team member" do
Team member
...@@ -7,6 +7,29 @@ ...@@ -7,6 +7,29 @@
.loading.hide .loading.hide
.span3 .span3
.light-well .light-well
.dropdown.pull-right
%a.dropdown-toggle.btn.btn-small{href: '#', "data-toggle" => "dropdown"}
%i.icon-plus-sign-alt
%b.caret
%ul.dropdown-menu
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
%li
= link_to url_for_new_issue, title: "New Issue" do
Issue
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
%li
= link_to new_project_merge_request_path(@project), title: "New Merge Request" do
Merge Request
- if @project.snippets_enabled && can?(current_user, :write_snippet, @project)
%li
= link_to new_project_snippet_path(@project), title: "New Snippet" do
Snippet
- if can?(current_user, :admin_team_member, @project)
%li.divider
%li
= link_to new_project_team_member_path(@project), title: "New Team member" do
Team member
%h3.page_title %h3.page_title
= @project.name = @project.name
- if @project.description.present? - if @project.description.present?
......
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