Commit 25d5c1f6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix last tree breadcrumbs for blob

parent 6d204544
......@@ -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, '#'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment