Commit 4e0afce6 authored by Marin Jankovski's avatar Marin Jankovski

Show browse file if we are browsing file history.

parent 22995fc9
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
- if commit.description? - if commit.description?
%a.text-expander.js-toggle-button ... %a.text-expander.js-toggle-button ...
- 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" = link_to "Browse Code »", project_tree_path(project, commit), class: "pull-right"
.notes_count .notes_count
- if @note_counts - if @note_counts
......
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