Show browse file if we are browsing file history.

This commit is contained in:
Marin Jankovski
2014-07-09 10:12:08 +02:00
parent 22995fc932
commit 4e0afce6a7
+4 -1
View File
@@ -7,7 +7,10 @@
- if commit.description?
%a.text-expander.js-toggle-button ...
= link_to "Browse Code »", project_tree_path(project, commit), class: "pull-right"
- if @path.present?
= link_to "Browse File »", project_blob_path(project, tree_join(commit.id, @path)), class: "pull-right"
- else
= link_to "Browse Code »", project_tree_path(project, commit), class: "pull-right"
.notes_count
- if @note_counts
- note_count = @note_counts.fetch(commit.id, 0)