diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index 67355fdfa..f797c7a2f 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -30,6 +30,7 @@ class BoardsController < ApplicationController def index #modify by nwb + @flag = params[:flag] || false if @project @boards = @project.boards.includes(:last_message => :author).all @boards = [] << @boards[0] if @boards.any? diff --git a/app/views/boards/_project_show.html.erb b/app/views/boards/_project_show.html.erb index 9a3b79051..1d9408e86 100644 --- a/app/views/boards/_project_show.html.erb +++ b/app/views/boards/_project_show.html.erb @@ -7,7 +7,7 @@ } } -