diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index 56202a79f4..76dfe2aaf4 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -32,6 +32,8 @@ class BoardsController < ApplicationController if @boards.size == 1 @board = @boards.first show + else + @messages = Message.joins(:board).where(boards: {project_id: @project.id}).order('created_on desc').limit(10) end end diff --git a/app/views/boards/index.html.erb b/app/views/boards/index.html.erb index 89df7aae5f..b1c1204fdc 100644 --- a/app/views/boards/index.html.erb +++ b/app/views/boards/index.html.erb @@ -33,6 +33,30 @@ +<% if @messages && @messages.any? %> +