From 87f5ca8e1f74616d9dc36a5f6fe57023444ed25c Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 19 Aug 2015 23:14:57 +0800 Subject: able edit issue title --- templates/admin/auth/edit.tmpl | 2 +- templates/admin/auth/new.tmpl | 2 +- templates/repo/issue/view_content.tmpl | 26 ++++++++++++++++++++++++-- 3 files changed, 26 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index e99b163e..11cfcdb9 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -60,7 +60,7 @@
- +
diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index 3f8f3d37..4e9e2f8e 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -56,7 +56,7 @@
- +
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 393a5838..1b1c035b 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -5,7 +5,23 @@
{{end}}
-

#{{.Issue.Index}} {{.Issue.Name}}

+
+

+ #{{.Issue.Index}} {{.Issue.Name}} + +

+ {{if .IsIssueOwner}} +
+
+
{{.i18n.Tr "repo.issues.edit"}}
+ + +
+
+ {{end}} +
{{if .Issue.IsClosed}}
{{.i18n.Tr "repo.issues.closed_title"}}
{{else}} @@ -33,6 +49,9 @@
{{.Issue.Poster.Name}} {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}}
+ {{if .IsIssueOwner}} + + {{end}}
@@ -68,7 +87,7 @@ {{.Poster.Name}} {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}}
{{if gt .ShowTag 0}} -
+
{{if eq .ShowTag 1}} {{$.i18n.Tr "repo.issues.poster"}} {{else if eq .ShowTag 2}} @@ -78,6 +97,9 @@ {{end}}
{{end}} + {{if or $.IsRepositoryAdmin (eq .Poster.Id $.SignedUserID)}} + + {{end}}
-- cgit v1.2.3