@** * 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], project:Project, isAllowedToNotice:Boolean, preparedPostBody:String = "") @import utils.AccessControl._ @import utils.TemplateHelper._ @import utils.HtmlUtil._ @import models.enumeration._ @implicitField = @{ helper.FieldConstructor(simpleForm) } @readmeUpdateMessage = @{ if( !requestHeader.getQueryString("readme").equals(None) ) { "Update README.md" } } @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", preparedPostBody, "tabindex=2")
@** fileUploader **@ @if(!UserApp.currentUser.isAnonymous) { @common.fileUploader(ResourceType.BOARD_POST, null) } @** end of fileUploader **@
@if(isAllowedToNotice ){ } @if(isProjectResourceCreatable(UserApp.currentUser(), project, ResourceType.COMMIT)){ @if(project.isGit && !requestHeader.getQueryString("readme").equals(None)){ } }
@Messages("button.cancel")
@common.markdown(project) }