Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-24 14:09:10 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-08-24 14:09:10 +0300
commit8f197315b3ec354cb0cc0af4acbe54d6aa01d71b (patch)
treecb29d15c4a656df8d13c625aaf6fdb2660f9dc11 /app/views/projects/branches/_branch.html.haml
parente65bc0f175c54d9df66fd4950972c0b0b08d448e (diff)
Aggressively merge views, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_14347679 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_14347470
Diffstat (limited to 'app/views/projects/branches/_branch.html.haml')
-rw-r--r--app/views/projects/branches/_branch.html.haml10
1 files changed, 1 insertions, 9 deletions
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml
index 21ac675ffe0..c5549f86e38 100644
--- a/app/views/projects/branches/_branch.html.haml
+++ b/app/views/projects/branches/_branch.html.haml
@@ -27,15 +27,7 @@
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: branch.name), class: 'btn btn-default', method: :post, title: "Compare" do
Compare
- - if @project.latest_successful_builds_for(branch.name).any?
- .dropdown.inline.artifacts-btn
- %a.btn.dropdown-toggle{ 'data-toggle' => 'dropdown' }
- = icon('download')
- %span.caret
- %span.sr-only
- Select Archive Format
- %ul.dropdown-menu.dropdown-menu-align-right{ role: 'menu' }
- = render 'projects/buttons/artifacts', project: @project, ref: branch.name
+ = render 'projects/buttons/download', project: @project, ref: branch.name
- if can_remove_branch?(@project, branch.name)
= link_to namespace_project_branch_path(@project.namespace, @project, branch.name), class: 'btn btn-remove remove-row has-tooltip', title: "Delete branch", method: :delete, data: { confirm: "Deleting the '#{branch.name}' branch cannot be undone. Are you sure?", container: 'body' }, remote: true do