@** * Yobi, Project Hosting SW * * Copyright 2012 NAVER Corp. * http://yobi.io * * @author Sangcheol Hwang * * 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, project:Project, page:com.avaje.ebean.Page[Posting], param:BoardApp.SearchCondition, notices:List[models.Posting]) @import utils.TemplateHelper._ @import utils.AccessControl._ @import scala.collection.immutable.Map @urlToList = {@routes.BoardApp.posts(project.owner, project.name, page.getPageIndex + 1)} @getPageListUrl(pageIndex:Integer) = {@routes.BoardApp.posts(project.owner, project.name, pageIndex + 1)} @makeFilterLink(fieldName:String, orderBy:String, orderDir:String, fieldText:String) = { @if(orderBy.equals(fieldName)) { @fieldText } else { @fieldText } } @projectLayout(title, project, utils.MenuType.BOARD) { @projectMenu(project, utils.MenuType.BOARD, "main-menu-only")
@if(page.getTotalRowCount == 0 && notices.size == 0){

@Messages("post.is.empty")

} else { @if(page.getTotalRowCount > 1){
@makeFilterLink("updatedDate", param.orderBy, param.orderDir, Messages("common.order.updatedDate")) @makeFilterLink("createdDate", param.orderBy, param.orderDir, Messages("common.order.date")) @makeFilterLink("numOfComments", param.orderBy, param.orderDir, Messages("common.order.comments"))
} @if(notices != null && notices.size > 0) { } }
@help.keymap("boardList", project)
}