(refs #11) Add permission to html.

This commit is contained in:
shimamoto
2013-07-11 15:03:57 +09:00
parent 063170463f
commit d59e358caa

View File

@@ -217,8 +217,10 @@
@issues.map { case (issue, labels, commentCount) => @issues.map { case (issue, labels, commentCount) =>
<tr> <tr>
<td> <td>
@if(hasWritePermission){
<label class="checkbox" style="cursor: default;"> <label class="checkbox" style="cursor: default;">
<input type="checkbox" value="@issue.issueId"/> <input type="checkbox" value="@issue.issueId"/>
}
<a href="@url(repository)/issues/@issue.issueId" class="issue-title">@issue.title</a> <a href="@url(repository)/issues/@issue.issueId" class="issue-title">@issue.title</a>
@labels.map { label => @labels.map { label =>
<span class="label-color small" style="background-color: #@label.color; color: #@label.fontColor; padding-left: 4px; padding-right: 4px">@label.labelName</span> <span class="label-color small" style="background-color: #@label.color; color: #@label.fontColor; padding-left: 4px; padding-right: 4px">@label.labelName</span>