forgejo-federation/templates/repo/issue/milestone.tmpl

44 lines
2.3 KiB
Cheetah
Raw Normal View History

2015-03-21 18:54:59 +05:30
{{template "base/head_old" .}}
2014-05-07 18:31:00 +05:30
{{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">
<li><a href="{{.RepoLink}}/milestones"{{if eq .State "open"}} class="active"{{end}}>Open Milestones <strong class="pull-right">{{.Repository.NumOpenMilestones}}</strong></a></li>
<li><a href="{{.RepoLink}}/milestones?state=closed"{{if eq .State "closed"}} class="active"{{end}}>Close Milestones <strong class="pull-right">{{.Repository.NumClosedMilestones}}</strong></a></li>
2014-05-07 18:31:00 +05:30
</ul>
<hr/>
<a href="{{.RepoLink}}/milestones/new" class="text-center">
2014-05-07 18:31:00 +05:30
<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 23:36:42 +05:30
{{range .Milestones}}
2014-05-07 18:31:00 +05:30
<div class="list-group-item milestone-item">
2014-05-12 23:36:42 +05:30
<h4 class="title pull-left"><a href="{{$.RepoLink}}/issues?milestone={{.Index}}{{if .IsClosed}}&state=closed{{end}}">{{.Name}}</a></h4>
2014-05-14 22:34:57 +05:30
<span class="issue-open label label-success">{{.NumOpenIssues}}</span>
<span class="issue-close label label-warning">{{.NumClosedIssues}}</span>
2014-05-07 18:31:00 +05:30
<p class="actions pull-right">
<a href="{{$.RepoLink}}/milestones/{{.Index}}/edit">Edit</a>
2014-05-14 05:16:48 +05:30
{{if .IsClosed}}
<a href="{{$.RepoLink}}/milestones/{{.Index}}/open">Open</a>
2014-05-14 05:16:48 +05:30
{{else}}
<a href="{{$.RepoLink}}/milestones/{{.Index}}/close">Close</a>
2014-05-14 05:16:48 +05:30
{{end}}
<a class="text-danger" href="{{$.RepoLink}}/milestones/{{.Index}}/delete">Delete</a>
2014-05-12 23:36:42 +05:30
<a href="{{$.RepoLink}}/issues?milestone={{.Index}}{{if .IsClosed}}&state=closed{{end}}">Issues</a>
2014-05-07 18:31:00 +05:30
</p>
<hr/>
<p class="description">{{.RenderedContent | Str2html}}</p>
2014-05-07 18:31:00 +05:30
</div>
2014-05-12 23:36:42 +05:30
{{end}}
2014-05-07 18:31:00 +05:30
</div>
</div>
</div>
</div>
</div>
2015-03-21 18:54:59 +05:30
{{template "base/footer_old" .}}