@** * 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. **@ @(user:User, groupNames:Array[String], projects:List[Project], postings:List[Posting], issues:List[Issue], pullRequests:List[PullRequest], milestones:List[Milestone], daysAgo:Int, selected:String) @import utils.MD5Util @import utils.TemplateHelper._ @watching_count(loginId: String) = { @User.findByLoginId(loginId).getWatchingProjects().size } @belongsToMe_count() = { @(user.myProjects("name").size - Project.findProjectsCreatedByUser(user.loginId, "name").size) } @showBadgeNumberIfExist(number:Int) = { @if(number>0){ @number } } @emailObfuscation(emailAddress:String) = { @Html(emailAddress.reverse.replace("@","@"+MD5Util.md5Hex(emailAddress)+"").replace(".", ""+MD5Util.md5Hex(emailAddress).reverse+".")) } @isActiveTab(tabId:String) = { @if(selected == tabId){ active } } @siteLayout(user.loginId, utils.MenuType.USER) {
@Messages("userinfo.daysAgo.prefix")@Messages("userinfo.daysAgo.suffix")
@if(projects.size==0){

@Messages("project.is.empty")

}
    @for(project <- projects){ @partial_projectlist(project, user) }
@if(postings.size==0){

@Messages("userinfo.daysAgo.prefix") @Messages("post.is.empty")

}
    @for(post <- postings){ @partial_postings(post, post.project) }
@if(issues.size==0){

@Messages("userinfo.daysAgo.prefix") @Messages("issue.is.empty")

}
    @for(issue <- issues){ @partial_issues(issue, issue.project) }
@if(pullRequests.size==0){

@Messages("userinfo.daysAgo.prefix") @Messages("pullRequest.is.empty")

}
    @for(pull <- pullRequests){ @partial_pullRequests(pull, pull.toProject) }
@if(milestones.size==0){

@Messages("milestone.is.empty")

}
    @for(milestone <- milestones){ @partial_milestones(milestone, milestone.project) }
}