|
|
@ -29,12 +29,9 @@ class BoardsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
def index
|
|
|
|
def index
|
|
|
|
@boards = @project.boards.includes(:last_message => :author).all
|
|
|
|
@boards = @project.boards.includes(:last_message => :author).all
|
|
|
|
# show the board if there is only one
|
|
|
|
if @boards.size == 1
|
|
|
|
unless @project.project_type == 1
|
|
|
|
@board = @boards.first
|
|
|
|
if @boards.size == 1
|
|
|
|
show and return
|
|
|
|
@board = @boards.first
|
|
|
|
|
|
|
|
show
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if @project.project_type == 1
|
|
|
|
if @project.project_type == 1
|
|
|
|
render :layout => 'base_courses'
|
|
|
|
render :layout => 'base_courses'
|
|
|
|