2015-03-21 16:24:59 +03:00
|
|
|
{{template "base/head_old" .}}
|
2014-05-07 17:01:00 +04:00
|
|
|
{{template "base/navbar" .}}
|
|
|
|
{{template "repo/nav" .}}
|
|
|
|
{{template "repo/toolbar" .}}
|
|
|
|
<div id="body" class="container">
|
|
|
|
<div id="issue">
|
|
|
|
<div class="col-md-3 filter-list">
|
|
|
|
<ul class="list-unstyled">
|
2014-05-12 22:06:42 +04:00
|
|
|
<li><a href="{{.RepoLink}}/issues/milestones"{{if eq .State "open"}} class="active"{{end}}>Open Milestones <strong class="pull-right">{{.Repository.NumOpenMilestones}}</strong></a></li>
|
|
|
|
<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>
|
2014-05-07 17:01:00 +04:00
|
|
|
</ul>
|
|
|
|
<hr/>
|
|
|
|
<a href="{{.RepoLink}}/issues/milestones/new" class="text-center">
|
|
|
|
<button class="btn btn-default btn-block">Create new milestone</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="milestones list-group">
|
2014-05-12 22:06:42 +04:00
|
|
|
{{range .Milestones}}
|
2014-05-07 17:01:00 +04:00
|
|
|
<div class="list-group-item milestone-item">
|
2014-05-12 22:06:42 +04:00
|
|
|
<h4 class="title pull-left"><a href="{{$.RepoLink}}/issues?milestone={{.Index}}{{if .IsClosed}}&state=closed{{end}}">{{.Name}}</a></h4>
|
2014-05-14 21:04:57 +04:00
|
|
|
<span class="issue-open label label-success">{{.NumOpenIssues}}</span>
|
|
|
|
<span class="issue-close label label-warning">{{.NumClosedIssues}}</span>
|
2014-05-07 17:01:00 +04:00
|
|
|
<p class="actions pull-right">
|
2014-05-13 21:28:21 +04:00
|
|
|
<a href="{{$.RepoLink}}/issues/milestones/{{.Index}}/edit">Edit</a>
|
2014-05-14 03:46:48 +04:00
|
|
|
{{if .IsClosed}}
|
|
|
|
<a href="{{$.RepoLink}}/issues/milestones/{{.Index}}/open">Open</a>
|
|
|
|
{{else}}
|
|
|
|
<a href="{{$.RepoLink}}/issues/milestones/{{.Index}}/close">Close</a>
|
|
|
|
{{end}}
|
|
|
|
<a class="text-danger" href="{{$.RepoLink}}/issues/milestones/{{.Index}}/delete">Delete</a>
|
2014-05-12 22:06:42 +04:00
|
|
|
<a href="{{$.RepoLink}}/issues?milestone={{.Index}}{{if .IsClosed}}&state=closed{{end}}">Issues</a>
|
2014-05-07 17:01:00 +04:00
|
|
|
</p>
|
|
|
|
<hr/>
|
2015-01-20 08:08:49 +03:00
|
|
|
<p class="description">{{.RenderedContent | Str2html}}</p>
|
2014-05-07 17:01:00 +04:00
|
|
|
</div>
|
2014-05-12 22:06:42 +04:00
|
|
|
{{end}}
|
2014-05-07 17:01:00 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-21 16:24:59 +03:00
|
|
|
{{template "base/footer_old" .}}
|