提交 4e0afce6 编写于 作者: M Marin Jankovski

Show browse file if we are browsing file history.

上级 22995fc9
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册