@(message: String, project: Project, histories: List[models.History] ) @import utils.JodaDateUtil._ @import utils.TemplateHelper._ @import models.enumeration._ @import utils.AccessControl._ @projectLogoImage = @{ defining(Attachment.findByContainer(project.asResource)) { files => if(files.size > 0){ "/files/" + files.head.id } else { routes.Assets.at("images/bg-default-project.jpg") } } } @userPageUrlOnHistory(history:History) = @{ if(history.getUserPageUrl() != null) { history.getUserPageUrl() } else { "#" } } @userAvatarUrlOnHistory(history:History) = @{ if(history.getUserAvatarUrl() != null){ history.getUserAvatarUrl() } else { routes.Assets.at("images/default-avatar-64.png") } } @makeHistoryWho(history:History) = {@history.getWho()} @makeHistoryHow(history:History) = {@history.getHow() } @makeHistoryWhat(history:History) = {@Messages("project.history.type." + history.getWhat())} @main(message, project, utils.MenuType.PROJECT_HOME) {
@prjmenu(project, utils.MenuType.PROJECT_HOME, "")
@project.vcs

@Messages("project.info")

@if(isAllowed(UserApp.currentUser(), project.tagsAsResource(), Operation.UPDATE)){ }

@Messages("project.members")

@if(histories.size > 0) {
    @for(history <- histories.iterator()) {
  • @Html(Messages("project.history.item", makeHistoryWho(history), makeHistoryWhat(history), makeHistoryHow(history) ))

    @agoString(ago(history.getWhen()))

  • }
}
@if(project.readme == null) {

@Messages("project.readme")

} else {
README.md
@project.readme
} @markdown()
}