gitlabhq/app/views/refs/_submodule_item.html.haml
Robert Speicher 7754189187 Fully embrace Ruby 1.9 hash syntax
Didn't bother with files in db/, config/, or features/
2012-08-10 18:25:15 -04:00

14 lines
305 B
Plaintext

- url = content.url(@ref) rescue nil
- 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