Commit a8fad4ff authored by Robert Speicher's avatar Robert Speicher

Remove locals from tree/submodule_item, use "object" instead

parent 37c3474f
- url = content.url(@ref) rescue nil
- name = content.basename
- url = submodule_item.url(@ref) rescue nil
- name = submodule_item.basename
- return unless url
%tr{ class: "tree-item", url: url }
%td.tree-item-file-name
= image_tag "submodule.png"
%strong= truncate(name, length: 40)
%td
%code= content.id[0..10]
%code= submodule_item.id[0..10]
%td
= link_to truncate(url, length: 40), url
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment