Context refactoring. Move Issues list, Search logic to context
This commit is contained in:
parent
63fe042d97
commit
679d0d6d76
15 changed files with 100 additions and 83 deletions
|
@ -9,9 +9,9 @@ class RefsController < ProjectResourceController
|
|||
before_filter :ref
|
||||
before_filter :define_tree_vars, only: [:blob, :logs_tree]
|
||||
|
||||
def switch
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
def switch
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
new_path = if params[:destination] == "tree"
|
||||
project_tree_path(@project, @ref)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue