summaryrefslogtreecommitdiff
path: root/app/views/projects/_files.html.haml
diff options
context:
space:
mode:
authorCristian Bica <cristian.bica@gmail.com>2015-10-01 17:05:20 +0300
committerCristian Bica <cristian.bica@gmail.com>2015-10-01 17:05:20 +0300
commitc5280434399ee489eebda254b2d246252df68f2b (patch)
tree4a208c29c40202d5341534e5f822aea120d3a2b1 /app/views/projects/_files.html.haml
parent2e8a3e3996f47a5b436bce9a6bbb61ca0a351cab (diff)
downloadgitlab-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.haml11
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