summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/milestone.tmpl
blob: 6a9e5f3790daafa7fa13e27191aee1114fb132ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{{template "base/head_old" .}}
{{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>
            </ul>
            <hr/>
            <a href="{{.RepoLink}}/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">
                {{range .Milestones}}
                <div class="list-group-item milestone-item">
                    <h4 class="title pull-left"><a href="{{$.RepoLink}}/issues?milestone={{.Index}}{{if .IsClosed}}&state=closed{{end}}">{{.Name}}</a></h4>
                    <span class="issue-open label label-success">{{.NumOpenIssues}}</span>
                    <span class="issue-close label label-warning">{{.NumClosedIssues}}</span>
                    <p class="actions pull-right">
                        <a href="{{$.RepoLink}}/milestones/{{.Index}}/edit">Edit</a>
                        {{if .IsClosed}}
                        <a href="{{$.RepoLink}}/milestones/{{.Index}}/open">Open</a>
                        {{else}}
                        <a href="{{$.RepoLink}}/milestones/{{.Index}}/close">Close</a>
                        {{end}}
                        <a class="text-danger" href="{{$.RepoLink}}/milestones/{{.Index}}/delete">Delete</a>
                        <a href="{{$.RepoLink}}/issues?milestone={{.Index}}{{if .IsClosed}}&state=closed{{end}}">Issues</a>
                    </p>
                    <hr/>
                    <p class="description">{{.RenderedContent | Str2html}}</p>
                </div>
                {{end}}
            </div>
        </div>
    </div>
</div>
</div>
{{template "base/footer_old" .}}