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.

issues.tmpl 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. {{template "user/dashboard/nav" .}}
  4. <div id="dashboard-wrapper">
  5. <div id="dashboard" class="container" data-page="user">
  6. {{if .HasInfo}}<div class="alert alert-info">{{.InfoMsg}}</div>{{end}}
  7. <div id="issue">
  8. <div class="left grid-1-5 filter-list">
  9. <ul class="list-unstyled menu menu-vertical">
  10. <li><a href="{{AppSubUrl}}/issues?state={{.State}}&repoid={{.RepoId}}" class="radius{{if eq .ViewType "all"}} active{{end}}" >In your repositories <strong class="pull-right">{{.IssueStats.AllCount}}</strong></a></li>
  11. <li><a href="{{AppSubUrl}}/issues?type=assigned&repoid={{.RepoId}}&state={{.State}}" class="radius{{if eq .ViewType "assigned"}} active{{end}}">Assigned to you <strong class="pull-right">{{.IssueStats.AssignCount}}</strong></a></li>
  12. <li><a href="{{AppSubUrl}}/issues?type=created_by&repoid={{.RepoId}}&state={{.State}}" class="radius{{if eq .ViewType "created_by"}} active{{end}}">Created by you <strong class="pull-right">{{.IssueStats.CreateCount}}</strong></a></li>
  13. <li><hr/></li>
  14. {{range .Repos}}
  15. <li><a href="{{AppSubUrl}}/issues?type={{$.ViewType}}{{if eq $.RepoId .ID}}{{else}}&repoid={{.ID}}{{end}}&state={{$.State}}" class="radius{{if eq $.RepoId .ID}} active{{end}}">{{$.SignedUser.Name}}/{{.Name}} <strong class="pull-right">{{if $.IsShowClosed}}{{.NumClosedIssues}}{{else}}{{.NumOpenIssues}}{{end}}</strong></a></li>
  16. {{end}}
  17. </ul>
  18. </div>
  19. <div class="right grid-3-4">
  20. <div class="filter-option">
  21. <div class="btn-group">
  22. <a class="btn btn-white btn-small issue-open{{if not .IsShowClosed}} active{{end}}" href="{{AppSubUrl}}/issues?type={{.ViewType}}&repoid={{.RepoId}}">Open</a>
  23. <a class="btn btn-white btn-small issue-close{{if .IsShowClosed}} active{{end}}" href="{{AppSubUrl}}/issues?type={{.ViewType}}&repoid={{.RepoId}}&state=closed">Closed</a>
  24. </div>
  25. </div>
  26. <div class="issues list-group">
  27. {{range .Issues}}{{if .}}
  28. <div class="list-group-item issue-item" id="issue-{{.ID}}" onclick="window.location.href='{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/issues/{{.Index}}'">
  29. <span class="number pull-right">#{{.Index}}</span>
  30. <h5 class="title"><a href="{{AppSubUrl}}/{{.Repo.Owner.Name}}/{{.Repo.Name}}/issues/{{.Index}}">{{.Name}}</a></h5>
  31. <p class="info">
  32. <span class="author"><img class="avatar" src="{{.Poster.AvatarLink}}" alt="" width="20"/>
  33. <a href="{{AppSubUrl}}/{{.Poster.Name}}">{{.Poster.Name}}</a></span>
  34. <span class="time">{{TimeSince .Created $.Lang}}</span>
  35. <span class="comment"><i class="fa fa-comments"></i> {{.NumComments}}</span>
  36. </p>
  37. </div>
  38. {{end}}{{end}}
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. {{template "ng/base/footer" .}}