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