Commit 25d5c1f63714d28a331095cf5b03fa577d3734d1
1 parent
6d204544
Exists in
master
and in
4 other branches
Fix last tree breadcrumbs for blob
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
app/views/blob/_blob.html.haml
... | ... | @@ -7,7 +7,12 @@ |
7 | 7 | \/ |
8 | 8 | %li |
9 | 9 | - if path |
10 | - = link_to truncate(title, length: 40), project_tree_path(@project, path) | |
10 | + - if path.end_with?(@path) | |
11 | + = link_to project_blob_path(@project, path) do | |
12 | + %span.cblue | |
13 | + = truncate(title, length: 40) | |
14 | + - else | |
15 | + = link_to truncate(title, length: 40), project_tree_path(@project, path) | |
11 | 16 | - else |
12 | 17 | = link_to title, '#' |
13 | 18 | ... | ... |