summaryrefslogtreecommitdiff
path: root/app/views/projects/tree/_submodule_item.html.haml
blob: 46e9be4af83bd73a08616d61cfe5b9d7503450d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- tree, commit = submodule_links(submodule_item)
%tr{ class: "tree-item" }
  %td.tree-item-file-name
    %i.fa.fa-archive
    %span
      = link_to truncate(submodule_item.name, length: 40), tree
    @
    %span.monospace
      - if commit.nil?
        #{truncate_sha(submodule_item.id)}
      - else
        = link_to "#{truncate_sha(submodule_item.id)}", commit
  %td
  %td.hidden-xs