You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
2.1 KiB

10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. {{template "repo/nav" .}}
  4. {{template "repo/toolbar" .}}
  5. <div id="body" class="container">
  6. <div id="issue">
  7. <div class="col-md-3 filter-list">
  8. <ul class="list-unstyled">
  9. <li><a href="{{.RepoLink}}/issues"{{if eq .ViewType "all"}} class="active"{{end}}>All Issues <strong class="pull-right">{{.IssueCount}}</strong></a></li>
  10. <!-- <li><a href="#">Assigned to you</a></li> -->
  11. <li><a href="{{.RepoLink}}/issues?type=created_by"{{if eq .ViewType "created_by"}} class="active"{{end}}>Created by you <strong class="pull-right">{{.IssueCreatedCount}}</strong></a></li>
  12. <!-- <li><a href="#">Mentioned</a></li> -->
  13. </ul>
  14. </div>
  15. <div class="col-md-9">
  16. <div class="filter-option">
  17. <div class="btn-group">
  18. <a class="btn btn-default issue-open{{if not .IsShowClosed}} active{{end}}" href="{{.RepoLink}}/issues?type={{.ViewType}}">{{.OpenCount}} Open</a>
  19. <a class="btn btn-default issue-close{{if .IsShowClosed}} active{{end}}" href="{{.RepoLink}}/issues?state=closed&type={{.ViewType}}">{{.ClosedCount}} Closed</a>
  20. </div>
  21. </div>
  22. <div class="issues list-group">
  23. {{range .Issues}}
  24. <div class="list-group-item issue-item" id="issue-{{.Id}}">
  25. <span class="number pull-right">#{{.Index}}</span>
  26. <h5 class="title"><a href="{{$.RepoLink}}/issues/{{.Index}}">{{.Name}}</a></h5>
  27. <p class="info">
  28. <span class="author"><img class="avatar" src="{{.Poster.AvatarLink}}" alt="" width="20"/>
  29. <a href="/user/{{.Poster.Name}}">{{.Poster.Name}}</a></span>
  30. <span class="time">{{TimeSince .Created}}</span>
  31. <span class="comment"><i class="fa fa-comments"></i> {{.NumComments}}</span>
  32. </p>
  33. </div>
  34. {{end}}
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. {{template "base/footer" .}}