12 lines
560 B
Text
12 lines
560 B
Text
- is_lfs_blob = @lfs_blob_ids.include?(blob_item.id)
|
|
%tr{ class: "tree-item #{tree_hex_class(blob_item)}" }
|
|
%td.tree-item-file-name
|
|
= tree_icon(type, blob_item.mode, blob_item.name)
|
|
- file_name = blob_item.name
|
|
= link_to project_blob_path(@project, tree_join(@id || @commit.id, blob_item.name)), class: 'str-truncated', title: file_name do
|
|
%span= file_name
|
|
- if is_lfs_blob
|
|
%span.badge.label-lfs.prepend-left-5 LFS
|
|
%td.d-none.d-sm-table-cell.tree-commit
|
|
%td.tree-time-ago.cgray.text-right
|
|
= render 'projects/tree/spinner'
|