8abc757539
Currently trees are sorted in the fashion: - folders - files - submodules with each section sorted alphabetically This changes to this system: - folders and submodules (sorted together) - files
6 lines
399 B
Text
6 lines
399 B
Text
- 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'
|