gitlab-org--gitlab-foss/app/views/projects/tree/_submodule_item.html.haml

16 lines
379 B
Text
Raw Normal View History

- tree, commit = submodule_links(submodule_item)
2013-10-12 03:01:27 -04:00
%tr{ class: "tree-item" }
2012-02-14 16:48:42 -05:00
%td.tree-item-file-name
= image_tag "submodule.png"
2013-10-12 03:01:27 -04:00
%span
= link_to truncate(submodule_item.name, length: 40), tree
2013-10-12 03:01:27 -04:00
@
%span.monospace
- if commit.nil?
#{submodule_item.id[0..10]}
- else
= link_to "#{submodule_item.id[0..10]}", commit
2013-10-12 03:01:27 -04:00
%td
%td
2012-02-14 16:48:42 -05:00
%td