Switchable the main branch on network graph
This commit is contained in:
parent
c84675ee06
commit
525a8cd3e9
9 changed files with 43 additions and 22 deletions
|
@ -13,6 +13,8 @@ class RefsController < ProjectResourceController
|
|||
format.html do
|
||||
new_path = if params[:destination] == "tree"
|
||||
project_tree_path(@project, (@ref + "/" + params[:path]))
|
||||
elsif params[:destination] == "graph"
|
||||
project_graph_path(@project, @ref)
|
||||
else
|
||||
project_commits_path(@project, @ref)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue