summaryrefslogtreecommitdiff
path: root/app/views/projects/tree
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-12-14 10:10:20 +0000
committerPhil Hughes <me@iamphill.com>2017-12-14 10:10:20 +0000
commit7d2affeff1885fb9984fed1088c8dffdc41a7320 (patch)
treeb572cd9484abad0cfadee819a52a7db49ce8def2 /app/views/projects/tree
parent3032989ad4e8b93e5ad60cdbb817d1be5f9edacb (diff)
downloadgitlab-ce-7d2affeff1885fb9984fed1088c8dffdc41a7320.tar.gz
moved lfs blob fetch from extractspath file
Diffstat (limited to 'app/views/projects/tree')
-rw-r--r--app/views/projects/tree/_blob_item.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/tree/_blob_item.html.haml b/app/views/projects/tree/_blob_item.html.haml
index d1ab49920eb..8c1c532cb3e 100644
--- a/app/views/projects/tree/_blob_item.html.haml
+++ b/app/views/projects/tree/_blob_item.html.haml
@@ -1,4 +1,4 @@
-- is_lfs_blob = @lfs_blobs.select{|b| b.id === blob_item.id }.any?
+- 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)