@** * Yobi, Project Hosting SW * * Copyright 2012 NAVER Corp. * http://yobi.io * * @author Ahn Hyeok Jun * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. **@ @(post:Posting, commentForm: play.data.Form[PostingComment], project:Project) @import utils.JodaDateUtil @import utils.TemplateHelper._ @import utils.AccessControl._ @import models.enumeration._ @import play.libs.Json.toJson @import utils.Markdown @implicitField = @{ helper.FieldConstructor(simpleForm) } @urlToPostings = @{ requestHeader.headers.get("Referer") match { case Some(url) => { urlToList(url, routes.BoardApp.posts(project.owner, project.name).toString) } case _ => routes.BoardApp.posts(project.owner, project.name).toString } } @projectLayout(post.title, project, utils.MenuType.BOARD){ @projectMenu(project, utils.MenuType.BOARD, "main-menu-only")
@** Post Info **@
@agoOrDateString(post.createdDate)
@post.getNumber @post.title
@** Content body **@ @** Comment **@
@partial_comments(project, post) @common.commentForm(post.asResource(), ResourceType.NONISSUE_COMMENT, routes.BoardApp.newComment(project.owner, project.name, post.getNumber).toString())
@Messages("button.list") @help.keymap("boardDetail", project)
@** Confirm to delete post **@ @common.markdown(project) @common.commentDeleteModal() }