diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-13 19:46:48 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-13 19:46:48 -0400 |
commit | 5ed5aa5228feba935679df8cb676af62018cc25d (patch) | |
tree | 91eab6292ed10c2e0bfe606ae972d9a03c1cb3e3 /templates/issue | |
parent | 33ec0632ffd9e770793eba57393f27385d5f392d (diff) | |
download | gitea-5ed5aa5228feba935679df8cb676af62018cc25d.tar.gz gitea-5ed5aa5228feba935679df8cb676af62018cc25d.zip |
Finish milestone
Diffstat (limited to 'templates/issue')
-rw-r--r-- | templates/issue/milestone.tmpl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/issue/milestone.tmpl b/templates/issue/milestone.tmpl index e15d964140..ebf02d83af 100644 --- a/templates/issue/milestone.tmpl +++ b/templates/issue/milestone.tmpl @@ -23,9 +23,12 @@ <span class="issue-close label label-warning">{{.NumOpenIssues}}</span> <p class="actions pull-right"> <a href="{{$.RepoLink}}/issues/milestones/{{.Index}}/edit">Edit</a> - <!-- <a href="#">Open</a> - <a href="#">Close</a> --> - <!-- <a class="text-danger" href="#">Delete</a> --> + {{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> <a href="{{$.RepoLink}}/issues?milestone={{.Index}}{{if .IsClosed}}&state=closed{{end}}">Issues</a> </p> <hr/> |