summaryrefslogtreecommitdiff
path: root/app/views/projects/tree/_tree_row.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/tree/_tree_row.html.haml')
-rw-r--r--app/views/projects/tree/_tree_row.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/projects/tree/_tree_row.html.haml b/app/views/projects/tree/_tree_row.html.haml
new file mode 100644
index 00000000000..0a5c6f048f7
--- /dev/null
+++ b/app/views/projects/tree/_tree_row.html.haml
@@ -0,0 +1,6 @@
+- if tree_row.type == :tree
+ = render partial: 'projects/tree/tree_item', object: tree_row, as: 'tree_item', locals: { type: 'folder' }
+- elsif tree_row.type == :blob
+ = render partial: 'projects/tree/blob_item', object: tree_row, as: 'blob_item', locals: { type: 'file' }
+- elsif tree_row.type == :commit
+ = render partial: 'projects/tree/submodule_item', object: tree_row, as: 'submodule_item'