Remove locals from tree/submodule_item, use "object" instead
This commit is contained in:
parent
37c3474f68
commit
a8fad4ff9c
|
@ -1,13 +1,11 @@
|
||||||
- url = content.url(@ref) rescue nil
|
- url = submodule_item.url(@ref) rescue nil
|
||||||
- name = content.basename
|
- name = submodule_item.basename
|
||||||
- return unless url
|
- return unless url
|
||||||
%tr{ class: "tree-item", url: url }
|
%tr{ class: "tree-item", url: url }
|
||||||
%td.tree-item-file-name
|
%td.tree-item-file-name
|
||||||
= image_tag "submodule.png"
|
= image_tag "submodule.png"
|
||||||
%strong= truncate(name, length: 40)
|
%strong= truncate(name, length: 40)
|
||||||
%td
|
%td
|
||||||
%code= content.id[0..10]
|
%code= submodule_item.id[0..10]
|
||||||
%td
|
%td
|
||||||
= link_to truncate(url, length: 40), url
|
= link_to truncate(url, length: 40), url
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue