From 75aff60c903c2c5ab92d75c9f067d6815f3daa2e Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 10 Aug 2015 21:47:23 +0800 Subject: finish create issue with milestone and assignee --- templates/repo/issue/list.tmpl | 11 +++++++---- templates/repo/issue/new_form.tmpl | 20 +++++++++++++------- templates/user/issues.tmpl | 2 +- 3 files changed, 21 insertions(+), 12 deletions(-) (limited to 'templates') diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index fa3f660f..640112e4 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -87,11 +87,14 @@

{{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.Name|Str2html}} {{if .Milestone}} - {{with .Milestone}} - - {{.Name}} + + {{.Milestone.Name}} + + {{end}} + {{if .Assignee}} + + - {{end}} {{end}}

diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index 6d31a01e..2d7a3ede 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -101,23 +101,29 @@ - +
+ {{.i18n.Tr "repo.issues.new.no_assignee"}} +
+ {{if .Assignee}} + {{.Assignee.Name}} + {{end}} +
+
{{end}} diff --git a/templates/user/issues.tmpl b/templates/user/issues.tmpl index 2eb393ff..677f9d14 100644 --- a/templates/user/issues.tmpl +++ b/templates/user/issues.tmpl @@ -12,7 +12,7 @@
  • Created by you {{.IssueStats.CreateCount}}

  • {{range .Repos}} -
  • {{$.SignedUser.Name}}/{{.Name}} {{if $.IsShowClosed}}{{.NumClosedIssues}}{{else}}{{.NumOpenIssues}}{{end}}
  • +
  • {{$.SignedUser.Name}}/{{.Name}} {{if $.IsShowClosed}}{{.NumClosedIssues}}{{else}}{{.NumOpenIssues}}{{end}}
  • {{end}} -- cgit v1.2.3