From 25d5c1f63714d28a331095cf5b03fa577d3734d1 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 8 May 2013 21:27:43 +0300 Subject: [PATCH] Fix last tree breadcrumbs for blob --- app/views/blob/_blob.html.haml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/blob/_blob.html.haml b/app/views/blob/_blob.html.haml index d055d48..68d6c06 100644 --- a/app/views/blob/_blob.html.haml +++ b/app/views/blob/_blob.html.haml @@ -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, '#' -- libgit2 0.21.2