2012-02-14 22:53:41 +01:00
|
|
|
- url = content.url(@ref) rescue nil
|
2012-02-14 22:48:42 +01:00
|
|
|
- name = content.basename
|
|
|
|
- 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
|
|
|
|
%code= content.id[0..10]
|
|
|
|
%td
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to truncate(url, length: 40), url
|
2012-02-14 22:48:42 +01:00
|
|
|
|
|
|
|
|