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.

list.tmpl 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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?state={{.State}}"{{if eq .ViewType "all"}} class="active"{{end}}>All Issues <strong class="pull-right">{{..IssueStats.AllCount}}</strong></a></li>
  10. <li><a href="{{.RepoLink}}/issues?type=assigned&state={{.State}}"{{if eq .ViewType "assigned"}} class="active"{{end}}>Assigned to you <strong class="pull-right">{{.IssueStats.AssignCount}}</strong></a></li>
  11. <li><a href="{{.RepoLink}}/issues?type=created_by&state={{.State}}"{{if eq .ViewType "created_by"}} class="active"{{end}}>Created by you <strong class="pull-right">{{.IssueStats.CreateCount}}</strong></a></li>
  12. <li><a href="{{.RepoLink}}/issues?type=mentioned&state={{.State}}"{{if eq .ViewType "mentioned"}} class="active"{{end}}>Mentioning you <strong class="pull-right">{{.IssueStats.MentionCount}}</strong></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}}">{{..IssueStats.OpenCount}} Open</a>
  19. <a class="btn btn-default issue-close{{if .IsShowClosed}} active{{end}}" href="{{.RepoLink}}/issues?type={{.ViewType}}&state=closed">{{.IssueStats.ClosedCount}} Closed</a>
  20. </div>
  21. </div>
  22. <div class="issues list-group">
  23. {{range .Issues}}{{if .Poster}}
  24. <div class="list-group-item issue-item{{if not .IsRead}} unread{{end}}" 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}}{{end}}
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. {{template "base/footer" .}}