diff options
author | Jason Hollingsworth <jhworth.developer@gmail.com> | 2014-01-02 10:31:25 -0600 |
---|---|---|
committer | Jason Hollingsworth <jhworth.developer@gmail.com> | 2014-01-07 20:50:36 -0600 |
commit | 97c72d7417ab766b37c745cbdcbc8cedab986362 (patch) | |
tree | 0659f6e71258ad9de6a3e1ae6ff2adbd9706e218 /app/views/projects/tree | |
parent | 1ad2a93678c3a513fcc6ba575343c0b1d93a16f0 (diff) | |
download | gitlab-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')
-rw-r--r-- | app/views/projects/tree/show.html.haml | 3 |
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 |