parent
b6d6663e0e
commit
0887dda8e4
1 changed files with 2 additions and 2 deletions
|
@ -5,9 +5,9 @@
|
||||||
- if @project.repo_exists?
|
- if @project.repo_exists?
|
||||||
- if can? current_user, :download_code, @project
|
- if can? current_user, :download_code, @project
|
||||||
%li{class: current_controller?(:tree, :blob, :blame) ? 'active' : ''}
|
%li{class: current_controller?(:tree, :blob, :blame) ? 'active' : ''}
|
||||||
= link_to 'Files', project_tree_path(@project, @project.root_ref)
|
= link_to 'Files', project_tree_path(@project, @ref || @project.root_ref)
|
||||||
%li{class: current_controller?(:commit, :commits, :compare, :repositories, :protected_branches) ? 'active' : ''}
|
%li{class: current_controller?(:commit, :commits, :compare, :repositories, :protected_branches) ? 'active' : ''}
|
||||||
= link_to "Commits", project_commits_path(@project, @project.root_ref)
|
= link_to "Commits", project_commits_path(@project, @ref || @project.root_ref)
|
||||||
%li{class: tab_class(:network)}
|
%li{class: tab_class(:network)}
|
||||||
= link_to "Network", graph_project_path(@project)
|
= link_to "Network", graph_project_path(@project)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue