@** * Yobi, Project Hosting SW * * Copyright 2013 NAVER Corp. * http://yobi.io * * @author Keesun Baik * * 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, milestone: models.Milestone, project: Project, issueState:State) @import scala.collection.immutable._ @import utils.TemplateHelper._ @import utils.AccessControl._ @import models.support.SearchCondition @import play.libs.Json.toJson @import utils.Markdown @urlToList = {@routes.MilestoneApp.milestones(project.owner, project.name)} @makeIssuesLink(mId: Long, _state: String) = @{ buildQueryString(routes.IssueApp.issues(project.owner, project.name, _state), Map("milestoneId"->mId.toString) ) } @getTabLinkByState(state:State) = { @routes.MilestoneApp.milestone(project.owner, project.name, milestone.id)?state=@state.state } @projectLayout(title, project, utils.MenuType.MILESTONE) { @projectMenu(project, utils.MenuType.MILESTONE, "")

@milestone.title @if(milestone.dueDate != null) { @Messages("label.dueDate") @milestone.getDueDateString @if(milestone.state != State.CLOSED) { (@milestone.until) } } @Messages("milestone.state." + milestone.state.state)

@Html(Markdown.render(milestone.contents, milestone.project))
@Messages("button.list") @if(isAllowed(UserApp.currentUser(), milestone.asResource(), Operation.DELETE)){ @Messages("button.delete") } @if(isAllowed(UserApp.currentUser(), milestone.asResource(), Operation.UPDATE)){ @Messages("button.edit") @if(milestone.state == State.OPEN) { } @if(milestone.state == State.CLOSED) { } }
@issue.partial_massupdate(project, new SearchCondition())
@{ issueState match { case State.OPEN => issue.partial_list(project, milestone.sortedByNumberOfOpenIssue(), new SearchCondition(),0,0) case State.CLOSED => issue.partial_list(project, milestone.sortedByNumberOfClosedIssue(), new SearchCondition(),0,0) case _ => issue.partial_list(project, milestone.sortedByNumberOfIssue(), new SearchCondition(),0,0) } }
@** Confirm to delete post **@ @common.markdown(project) }