summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/projects/tree/_submodule_item.html.haml15
1 files changed, 7 insertions, 8 deletions
diff --git a/app/views/projects/tree/_submodule_item.html.haml b/app/views/projects/tree/_submodule_item.html.haml
index 26aad16e2c0..a6d402f9e8e 100644
--- a/app/views/projects/tree/_submodule_item.html.haml
+++ b/app/views/projects/tree/_submodule_item.html.haml
@@ -1,11 +1,10 @@
-- url = submodule_item.url(@ref) rescue ''
-- name = submodule_item.basename
-- return '' unless url
-%tr{ class: "tree-item", url: url }
+%tr{ class: "tree-item" }
%td.tree-item-file-name
= image_tag "submodule.png"
- %span= truncate(name, length: 40)
+ %span
+ = link_to truncate(submodule_item.name, length: 40), '#'
+ @
+ %span.monospace #{submodule_item.id[0..10]}
+ %td
+ %td
%td
- %code= submodule_item.id[0..10]
- %td{ colspan: 2 }
- = link_to truncate(url, length: 40), url