[Notice] Announcing the End of Demo Server [Read me]
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
2014-05-22
File name
Commit message
Commit date
@**
* 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.
**@
@(issue:Issue, project:Project)
@import utils.JodaDateUtil
@import utils.TemplateHelper._
@import utils.AccessControl._
@urlToList = {@routes.IssueApp.issues(project.owner, project.name, "OPEN", "html", 1)}
@makeLabelLink(project:Project, label:IssueLabel) = {
<a href="@urlToList&labelIds=@label.id" class="label issue-label list-label" data-labelId="@label.id" data-color="@label.color" style="background:@label.color">@label.name</a>
}
@defining(User.findByLoginId(issue.authorLoginId)){ user =>
<li class="post-item " id="issue-item-@issue.id">
<div class="span10">
<a href="@routes.ProjectApp.project(project.owner, project.name)" class="avatar-wrap mlarge">
<img src="@urlToProjectLogo(project)" alt="@project.owner / @project.name">
</a>
<div class="title-wrap">
<a href="@routes.ProjectApp.project(issue.project.owner,issue.project.name)" class="title project">
@issue.project.name
</a>
<span class="post-id">#@issue.getNumber</span>
<a href="@routes.IssueApp.issue(issue.project.owner, issue.project.name, issue.getNumber)" class="title">
@issue.title
</a>
</div>
<div class="infos">
@if(user.name){
<a href="@routes.UserApp.userInfo(user.loginId)" class="infos-item infos-link-item" data-toggle="tooltip" data-placement="top" title="@user.loginId">
@user.name
</a>
} else {
<span class="infos-item">@Messages("issue.noAuthor")</span>
}
<span class="infos-item" title="@JodaDateUtil.getDateString(issue.createdDate)">
@agoOrDateString(issue.createdDate)
</span>
@if(project.menuSetting.milestone && issue.milestone != null) {
<span class="infos-item mileston-tag">
<a href="@routes.MilestoneApp.milestone(issue.project.owner, issue.project.name, issue.milestone.id)" data-toggle="tooltip" data-placement="top" title="@Messages("milestone")">
@issue.milestone.title
</a>
</span>
}
@if(issue.comments.size()>0 || issue.voters.size()>0) {
<span class="infos-item item-count-groups">
@if(issue.comments.size()>0){
@countHtml("comments",routes.IssueApp.issue(issue.project.owner, issue.project.name, issue.getNumber).toString() + "#comments", issue.comments.size() )
}
@if(issue.voters.size()>0){
@countHtml("hearts",routes.IssueApp.issue(issue.project.owner, issue.project.name, issue.getNumber).toString() + "#vote", issue.voters.size(), "strong" )
}
</span>
}
@for(label <- issue.labels.toList.sortBy(r => (r.category, r.name))) {
@makeLabelLink(project, label)
}
</div>
</div>
<div class="span2">
<div class="mt5 pull-right">
@if(issue.assigneeName != null) {
<a href="@routes.UserApp.userInfo(issue.assignee.user.loginId)" class="avatar-wrap assinee" data-toggle="tooltip" data-placement="top" title="@Messages("issue.assignee"): @issue.assigneeName">
<img src="@issue.assignee.user.avatarUrl" width="32" height="32" alt="@issue.assigneeName">
</a>
} else {
<div class="empty-avatar-wrap"> </div>
}
</div>
<div class="pull-right">
@if(issue.dueDate != null) {
<div class="mr20 mt10 pull-right @if(issue.isOverDueDate) {overdue}" data-toggle="tooltip" data-placement="top" title="@issue.getDueDateString">
<i class="yobicon-clock2"></i>
@if(issue.isOverDueDate) {
@Messages("issue.dueDate.overdue")
} else {
@issue.until
}
</div>
</div>
}
</div>
</li>
}