gitlabhq/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 10:48:25 +01:00
- return '' unless url
%tr{ class: "tree-item", url: url }
2012-02-14 22:48:42 +01:00
%td.tree-item-file-name
= image_tag "submodule.png"
%strong= truncate(name, length: 40)
2012-02-14 22:48:42 +01:00
%td
%code= submodule_item.id[0..10]
%td{ colspan: 2 }
= link_to truncate(url, length: 40), url