Implemented the issue label display.

This commit is contained in:
shimamoto
2013-07-02 13:02:25 +09:00
parent 46aa327ded
commit 3c17aa3da2
3 changed files with 15 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
@(issue: model.Issue, comments: List[model.IssueComment], repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
@(issue: model.Issue, comments: List[model.IssueComment], issueLabels: List[model.Label], repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
@import context._
@import view.helpers._
@html.main("%s - Issue #%d - %s/%s".format(issue.title, issue.issueId, repository.owner, repository.name)){
@@ -77,8 +77,9 @@
</div>
</div>
<ul class="label-list">
<li><span class="label" style="background-color: #f89406;">improvement</span></li>
<li><span class="label" style="background-color: #3a87ad;">not bug</span></li>
@issueLabels.map { label =>
<li><span class="label" style="background-color: #@label.color;">@label.labelName</span></li>
}
</ul>
</div>
</div>