gitlab-org--gitlab-foss/app/views/projects/tree/_submodule_item.html.haml
Dmitriy Zaporozhets 910a99f90b
Improve tree view for mobile
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-06 22:21:07 +03:00

14 lines
371 B
Text

- tree, commit = submodule_links(submodule_item)
%tr{ class: "tree-item" }
%td.tree-item-file-name
%i.icon-archive
%span
= link_to truncate(submodule_item.name, length: 40), tree
@
%span.monospace
- if commit.nil?
#{submodule_item.id[0..10]}
- else
= link_to "#{submodule_item.id[0..10]}", commit
%td
%td.hidden-xs