@** * 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. **@ @(title:String, form: play.data.Form[Posting], posting:Posting, number:Long, project:Project, isAllowedToNotice:Boolean) @import utils.AccessControl._ @import utils.TemplateHelper._ @import utils.HtmlUtil._ @import models.enumeration.ResourceType @implicitField = @{ helper.FieldConstructor(simpleForm) } @projectLayout(title, project, utils.MenuType.BOARD) { @projectMenu(project, utils.MenuType.BOARD, "main-menu-only")
@defining(form.errors().get("title")) { errors => @if(errors != null) {
@for(error <- errors) {
@Messages(error.message)
}
} }
@common.editor("body", posting.body, "tabindex=2", "content-body")
@** fileUploader **@ @if(!UserApp.currentUser.isAnonymous) { @common.fileUploader(ResourceType.BOARD_POST, posting.id) } @** end of fileUploader **@
@if(isAllowedToNotice){ @helper.input(form("notice")){(id, name, value, args) => } } @if(project.isGit && isProjectResourceCreatable(UserApp.currentUser(), project, ResourceType.COMMIT)){ }
@Messages("button.cancel")
@common.markdown(project) }