提交 995ce5fd 编写于 作者: D Dmitriy Zaporozhets

Fix 500 error on page with submodules

上级 d43d7471
- url = submodule_item.url(@ref) rescue '' %tr{ class: "tree-item" }
- name = submodule_item.basename
- return '' unless url
%tr{ class: "tree-item", url: url }
%td.tree-item-file-name %td.tree-item-file-name
= image_tag "submodule.png" = 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 %td
%code= submodule_item.id[0..10]
%td{ colspan: 2 }
= link_to truncate(url, length: 40), url
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册