(refs #26) Implements repository filter.

This commit is contained in:
shimamoto
2013-07-30 19:36:20 +09:00
parent b8da93912f
commit 66855e65bb
3 changed files with 30 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
allCount: Int,
assignedCount: Int,
createdByCount: Int,
repositories: List[(String, String)],
repositories: List[(String, String, Int)],
condition: service.IssuesService.IssueSearchCondition,
filter: String)(implicit context: app.Context)
@import context._
@@ -33,10 +33,10 @@
</ul>
<hr/>
<ul class="nav nav-pills nav-stacked small">
@repositories.map { case (owner, name) =>
<li>
@repositories.map { case (owner, name, count) =>
<li@if(condition.repo == Some(owner + "/" + name)){ class="active"}>
<a href="@condition.copy(repo = Some(owner + "/" + name)).toURL">
<span class="count-right">0</span>
<span class="count-right">@count</span>
@owner/@name
</a>
</li>