Newer
Older
gitbucket_jkp / src / main / twirl / dashboard / issues.scala.html
@Naoki Takezoe Naoki Takezoe on 14 Aug 2014 1 KB (refs #464)Switch to play-twirl
  1. @(listparts: play.twirl.api.Html,
  2. allCount: Int,
  3. assignedCount: Int,
  4. createdByCount: Int,
  5. repositories: List[(String, String, Int)],
  6. condition: service.IssuesService.IssueSearchCondition,
  7. filter: String)(implicit context: app.Context)
  8. @import context._
  9. @import view.helpers._
  10. @html.main("Your Issues"){
  11. <div class="container">
  12. @dashboard.html.tab("issues")
  13. <div class="row-fluid">
  14. <div class="span3">
  15. <ul class="nav nav-pills nav-stacked">
  16. <li@if(filter == "all"){ class="active"}>
  17. <a href="@path/dashboard/issues/repos@condition.toURL">
  18. <span class="count-right">@allCount</span>
  19. In your repositories
  20. </a>
  21. </li>
  22. <li@if(filter == "assigned"){ class="active"}>
  23. <a href="@path/dashboard/issues/assigned@condition.toURL">
  24. <span class="count-right">@assignedCount</span>
  25. Assigned to you
  26. </a>
  27. </li>
  28. <li@if(filter == "created_by"){ class="active"}>
  29. <a href="@path/dashboard/issues/created_by@condition.toURL">
  30. <span class="count-right">@createdByCount</span>
  31. Created by you
  32. </a>
  33. </li>
  34. </ul>
  35. <hr/>
  36. <ul class="nav nav-pills nav-stacked small">
  37. @repositories.map { case (owner, name, count) =>
  38. <li@if(condition.repo == Some(owner + "/" + name)){ class="active"}>
  39. <a href="@condition.copy(repo = Some(owner + "/" + name)).toURL">
  40. <span class="count-right">@count</span>
  41. @owner/@name
  42. </a>
  43. </li>
  44. }
  45. </ul>
  46. </div>
  47. @listparts
  48. </div>
  49. </div>
  50. }