Fix last tree breadcrumbs for blob

This commit is contained in:
Dmitriy Zaporozhets 2013-05-08 21:27:43 +03:00
parent 6d204544a1
commit 25d5c1f637

View file

@ -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, '#'