Merge branch 'feedactivities' of https://github.com/kaakaa/gitbucket into kaakaa-feedactivities

This commit is contained in:
takezoe
2014-04-18 06:44:27 +09:00
6 changed files with 46 additions and 0 deletions

View File

@@ -143,6 +143,9 @@ case class Context(settings: SystemSettingsService.SystemSettings, loginAccount:
lazy val currentPath = request.getRequestURI.substring(request.getContextPath.length)
lazy val baseURL = request.getRequestURL.substring(0, request.getRequestURL.length - request.getRequestURI.length) + path
lazy val host = request.getServerName
/**
* Get object from cache.
*

View File

@@ -46,6 +46,11 @@ trait IndexControllerBase extends ControllerBase {
redirect("/")
}
get("/activities.atom"){
contentType = "application/atom+xml; type=feed"
xml.feed(getRecentActivities())
}
/**
* Set account information into HttpSession and redirect.
*/