Fix last tree breadcrumbs for blob
This commit is contained in:
parent
6d204544a1
commit
25d5c1f637
1 changed files with 6 additions and 1 deletions
|
@ -7,7 +7,12 @@
|
|||
\/
|
||||
%li
|
||||
- if path
|
||||
= link_to truncate(title, length: 40), project_tree_path(@project, path)
|
||||
- if path.end_with?(@path)
|
||||
= link_to project_blob_path(@project, path) do
|
||||
%span.cblue
|
||||
= truncate(title, length: 40)
|
||||
- else
|
||||
= link_to truncate(title, length: 40), project_tree_path(@project, path)
|
||||
- else
|
||||
= link_to title, '#'
|
||||
|
||||
|
|
Loading…
Reference in a new issue