mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-23 11:36:09 +10:00
Show browse file if we are browsing file history.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user