This commit is contained in:
parent
d7f0b42bb7
commit
9491781b45
|
@ -29,12 +29,9 @@ class BoardsController < ApplicationController
|
|||
|
||||
def index
|
||||
@boards = @project.boards.includes(:last_message => :author).all
|
||||
# show the board if there is only one
|
||||
unless @project.project_type == 1
|
||||
if @boards.size == 1
|
||||
@board = @boards.first
|
||||
show
|
||||
end
|
||||
if @boards.size == 1
|
||||
@board = @boards.first
|
||||
show and return
|
||||
end
|
||||
if @project.project_type == 1
|
||||
render :layout => 'base_courses'
|
||||
|
|
Loading…
Reference in New Issue