diff options
author | Cristian Bica <cristian.bica@gmail.com> | 2015-10-01 17:05:20 +0300 |
---|---|---|
committer | Cristian Bica <cristian.bica@gmail.com> | 2015-10-01 17:05:20 +0300 |
commit | c5280434399ee489eebda254b2d246252df68f2b (patch) | |
tree | 4a208c29c40202d5341534e5f822aea120d3a2b1 /app/views/projects/_files.html.haml | |
parent | 2e8a3e3996f47a5b436bce9a6bbb61ca0a351cab (diff) | |
download | gitlab-ce-c5280434399ee489eebda254b2d246252df68f2b.tar.gz |
Allow users to select the Files view as default project view
Diffstat (limited to 'app/views/projects/_files.html.haml')
-rw-r--r-- | app/views/projects/_files.html.haml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/projects/_files.html.haml b/app/views/projects/_files.html.haml new file mode 100644 index 00000000000..2a99708eb43 --- /dev/null +++ b/app/views/projects/_files.html.haml @@ -0,0 +1,11 @@ += render 'projects/last_push' + +.tree-ref-holder + = render 'shared/ref_switcher', destination: 'tree', path: @path + +- if can? current_user, :download_code, @project + .tree-download-holder + = render 'projects/repositories/download_archive', ref: @ref, btn_class: 'btn-group pull-right hidden-xs hidden-sm', split_button: true + +#tree-holder.tree-holder.clearfix + = render "projects/tree/tree", tree: @tree |