gitlab-org--gitlab-foss/app/views/refs/_submodule_item.html.haml

14 lines
317 B
Text
Raw Normal View History

2012-02-14 16:53:41 -05:00
- url = content.url(@ref) rescue nil
2012-02-14 16:48:42 -05:00
- name = content.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= content.id[0..10]
%td
= link_to truncate(url, :length => 40), url