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.

43 lines
2.3 KiB

10 years ago
10 years ago
  1. {{template "base/head_old" .}}
  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/milestones"{{if eq .State "open"}} class="active"{{end}}>Open Milestones <strong class="pull-right">{{.Repository.NumOpenMilestones}}</strong></a></li>
  10. <li><a href="{{.RepoLink}}/issues/milestones?state=closed"{{if eq .State "closed"}} class="active"{{end}}>Close Milestones <strong class="pull-right">{{.Repository.NumClosedMilestones}}</strong></a></li>
  11. </ul>
  12. <hr/>
  13. <a href="{{.RepoLink}}/issues/milestones/new" class="text-center">
  14. <button class="btn btn-default btn-block">Create new milestone</button>
  15. </a>
  16. </div>
  17. <div class="col-md-9">
  18. <div class="milestones list-group">
  19. {{range .Milestones}}
  20. <div class="list-group-item milestone-item">
  21. <h4 class="title pull-left"><a href="{{$.RepoLink}}/issues?milestone={{.Index}}{{if .IsClosed}}&state=closed{{end}}">{{.Name}}</a></h4>
  22. <span class="issue-open label label-success">{{.NumOpenIssues}}</span>
  23. <span class="issue-close label label-warning">{{.NumClosedIssues}}</span>
  24. <p class="actions pull-right">
  25. <a href="{{$.RepoLink}}/issues/milestones/{{.Index}}/edit">Edit</a>
  26. {{if .IsClosed}}
  27. <a href="{{$.RepoLink}}/issues/milestones/{{.Index}}/open">Open</a>
  28. {{else}}
  29. <a href="{{$.RepoLink}}/issues/milestones/{{.Index}}/close">Close</a>
  30. {{end}}
  31. <a class="text-danger" href="{{$.RepoLink}}/issues/milestones/{{.Index}}/delete">Delete</a>
  32. <a href="{{$.RepoLink}}/issues?milestone={{.Index}}{{if .IsClosed}}&state=closed{{end}}">Issues</a>
  33. </p>
  34. <hr/>
  35. <p class="description">{{.RenderedContent | Str2html}}</p>
  36. </div>
  37. {{end}}
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. {{template "base/footer_old" .}}