Commit a8fad4ff9c1ae5adbe55989a44dad56a6a9b56e6
1 parent
37c3474f
Exists in
master
and in
4 other branches
Remove locals from tree/submodule_item, use "object" instead
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
app/views/tree/_submodule_item.html.haml
| 1 | -- url = content.url(@ref) rescue nil | |
| 2 | -- name = content.basename | |
| 1 | +- url = submodule_item.url(@ref) rescue nil | |
| 2 | +- name = submodule_item.basename | |
| 3 | 3 | - return unless url |
| 4 | 4 | %tr{ class: "tree-item", url: url } |
| 5 | 5 | %td.tree-item-file-name |
| 6 | 6 | = image_tag "submodule.png" |
| 7 | 7 | %strong= truncate(name, length: 40) |
| 8 | 8 | %td |
| 9 | - %code= content.id[0..10] | |
| 9 | + %code= submodule_item.id[0..10] | |
| 10 | 10 | %td |
| 11 | 11 | = link_to truncate(url, length: 40), url |
| 12 | - | |
| 13 | - | ... | ... |