(refs #4)Add 'News Feed' to the index page.

This commit is contained in:
takezoe
2013-07-07 14:05:01 +09:00
parent 6005282d9f
commit 96dac65e31
5 changed files with 81 additions and 59 deletions

View File

@@ -2,12 +2,16 @@ package app
import service._
class IndexController extends IndexControllerBase with RepositoryService with AccountService with SystemSettingsService
class IndexController extends IndexControllerBase
with RepositoryService with AccountService with SystemSettingsService with ActivityService
trait IndexControllerBase extends ControllerBase { self: RepositoryService with SystemSettingsService =>
trait IndexControllerBase extends ControllerBase { self: RepositoryService
with SystemSettingsService with ActivityService =>
get("/"){
html.index(getAccessibleRepositories(context.loginAccount, baseUrl), loadSystemSettings(),
html.index(getRecentActivities(),
getAccessibleRepositories(context.loginAccount, baseUrl),
loadSystemSettings(),
context.loginAccount.map{ account => getRepositoryNamesOfUser(account.userName) }.getOrElse(Nil))
}