gitlab-org--gitlab-foss/app/views/tree/_submodule_item.html.haml

12 lines
340 B
Text
Raw Normal View History

- url = submodule_item.url(@ref) rescue ''
- name = submodule_item.basename
2013-01-21 04:48:25 -05:00
- return '' unless url
%tr{ class: "tree-item", url: url }
2012-02-14 16:48:42 -05:00
%td.tree-item-file-name
= image_tag "submodule.png"
%strong= truncate(name, length: 40)
2012-02-14 16:48:42 -05:00
%td
%code= submodule_item.id[0..10]
%td{ colspan: 2 }
= link_to truncate(url, length: 40), url