gitlab-org--gitlab-foss/app/views/tree/_submodule_item.html.haml
2013-01-21 09:48:25 +00:00

11 lines
340 B
Text

- url = submodule_item.url(@ref) rescue ''
- 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= submodule_item.id[0..10]
%td{ colspan: 2 }
= link_to truncate(url, length: 40), url