[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
2014-07-28
@**
* Yobi, Project Hosting SW
*
* Copyright 2014 NAVER Corp.
* http://yobi.io
*
* @Author Suwon Chae, 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.
**@
@(project:Project, issue:Issue)
@import utils.AccessControl._
<select id="assignee" name="assignee.user.id"
data-toggle="select2" data-format="user">
<option value="@User.anonymous.id" @if(issue == null || issue.assignee == null){selected}>@Messages("issue.noAssignee")</option>
@if(isAllowed(UserApp.currentUser(), project.asResource(), Operation.ASSIGN_ISSUE)) {
<option value="@UserApp.currentUser().id">@Messages("issue.assignToMe")</option>
}
@if(issue != null){
@defining(issue.getAuthor) { issueAuthor =>
@if(!UserApp.currentUser.equals(issueAuthor) &&
isAllowed(issueAuthor, project.asResource(), Operation.ASSIGN_ISSUE)) {
<option value="@issueAuthor.id">@Messages("issue.assignToAuthor")</option>
}
}
}
@for(user <- project.relatedUsers){
<option value="@user.id"
data-avatar-url="@User.findByLoginId(user.loginId).avatarUrl"
data-login-id="@user.loginId"
@if(issue != null && issue.assignee != null && issue.assignee.user.loginId == user.loginId){
selected
}
>
@user.name
</option>
}
</select>