@** * Yobi, Project Hosting SW * * Copyright 2012 NAVER Corp. * http://yobi.io * * @author Tae * * 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, currentPage: com.avaje.ebean.Page[Issue], param:models.support.SearchCondition, project:Project) @import helper._ @import utils.HttpUtil._ @import utils.TemplateHelper._ @import utils.AccessControl._ @import models.enumeration._ @import scala.collection.immutable.Map @import scala.collection.mutable.ArrayBuffer @makeFilterLink(fieldName:String, orderBy:String, orderDir:String, fieldText:String) = { @if(orderBy.equals(fieldName)) { @fieldText } else { @fieldText } }
@partial_list_quicksearch(param, project) @partial_searchform(param, project)
@if(currentPage.getList.isEmpty){

@Messages("issue.is.empty")

@help.keymap("issueList", project) } else {
@if(ProjectUser.isMember(UserApp.currentUser().id, project.id)){ @partial_massupdate(project, param) } @if(currentPage.getList.size > 1){
@makeFilterLink("dueDate", param.orderBy, param.orderDir, Messages("common.order.dueDate")) @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(currentPage.getPageIndex == 0 && !param.hasCondition && !param.state.equals(State.CLOSED.state())) { @partial_list_draft(project, IssueApp.findDraftIssues(project.owner, project.name)) } @partial_list(project, currentPage.getList, param, currentPage.getPageIndex, currentPage.getTotalPageCount) @help.keymap("issueList", project) }