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