summaryrefslogtreecommitdiff
path: root/app/views/projects/tree/show.html.haml
diff options
context:
space:
mode:
authorJason Hollingsworth <jhworth.developer@gmail.com>2014-01-02 10:31:25 -0600
committerJason Hollingsworth <jhworth.developer@gmail.com>2014-01-07 20:50:36 -0600
commit97c72d7417ab766b37c745cbdcbc8cedab986362 (patch)
tree0659f6e71258ad9de6a3e1ae6ff2adbd9706e218 /app/views/projects/tree/show.html.haml
parent1ad2a93678c3a513fcc6ba575343c0b1d93a16f0 (diff)
downloadgitlab-ce-97c72d7417ab766b37c745cbdcbc8cedab986362.tar.gz
Add UI for downloading various archive formats.
Change the “Download” button to a split button with options for zip and tar.gz. Added download option to tree view.
Diffstat (limited to 'app/views/projects/tree/show.html.haml')
-rw-r--r--app/views/projects/tree/show.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/projects/tree/show.html.haml b/app/views/projects/tree/show.html.haml
index 0f7692aba7f..60ae95ebcb7 100644
--- a/app/views/projects/tree/show.html.haml
+++ b/app/views/projects/tree/show.html.haml
@@ -1,4 +1,7 @@
%div.tree-ref-holder
= render 'shared/ref_switcher', destination: 'tree', path: @path
+- if can? current_user, :download_code, @project
+ .tree-ref-holder.pull-right
+ = render 'projects/repositories/download_archive', ref: @ref, btn_class: 'btn-group-small', split_button: true
%div#tree-holder.tree-holder
= render "tree", tree: @tree