@** * Yobi, Project Hosting SW * * Copyright 2013 NAVER Corp. * http://yobi.io * * @author Jihan Kim * * 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. **@ @(message: String, project: Project, histories: List[models.History], tabId: String) @import org.apache.commons.lang.StringUtils @import utils.JodaDateUtil @import utils.TemplateHelper._ @import utils.AccessControl._ @import utils.Markdown @import models.enumeration._ @import scala.collection.immutable._ @isActiveTab(tab:String) = @{ if (tab == tabId) {"active"} } @projectLayout(message, project, utils.MenuType.PROJECT_HOME) { @projectMenu(project, utils.MenuType.PROJECT_HOME, "")

@if(StringUtils.isEmpty(project.overview)) {@Messages("project.description.placeholder")} else {@Html(Markdown.render(project.overview))} @if(isAllowed(UserApp.currentUser(), project.asResource(), Operation.UPDATE)){ }

@if(project.menuSetting.code) {
}
@tabId match { case "readme" => { @partial_readme(project) } case "history" => { @partial_history(histories) } case "dashboard" => { @partial_dashboard(project) } }
@if(project.menuSetting.issue) { @Messages("button.newIssue") } @if(project.menuSetting.code) { @if(project.vcs.equals("GIT")){ @Messages("fork") } }
@if(project.menuSetting.milestone) { @defining(Milestone.findOpenMilestones(project.id)){ milestones => @if(milestones.length > 0){ @views.html.milestone.partial_status(milestones(0), project) } } }

@Messages("project.info")

@if(isAllowed(UserApp.currentUser(), project.labelsAsResource(), Operation.UPDATE)){ }

@Messages("project.members")

@if(isAllowed(UserApp.currentUser(), project.labelsAsResource(), Operation.UPDATE)){ @Messages("button.add") }
@if(isAllowed(UserApp.currentUser(), project.asResource(), Operation.LEAVE)){ }
@** Confirm to leave the project **@
@common.markdown(project) }