summaryrefslogtreecommitdiffstats
path: root/modules/auth/repo_form.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-13 16:07:11 +0800
committerUnknwon <u@gogs.io>2015-08-13 16:07:11 +0800
commit133b19d0c5587b7c6d5d9e8057f81bc45a246972 (patch)
tree1cd0e19599d5f9288fb1b2cbf5bf8f48fdf16fd8 /modules/auth/repo_form.go
parentd7d72b9e3cc0e536d213d6501244544de8020661 (diff)
downloadgitea-133b19d0c5587b7c6d5d9e8057f81bc45a246972.tar.gz
gitea-133b19d0c5587b7c6d5d9e8057f81bc45a246972.zip
finish view comments on issue page
Diffstat (limited to 'modules/auth/repo_form.go')
-rw-r--r--modules/auth/repo_form.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 1f2ba3b784..3882cb673f 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -110,6 +110,16 @@ func (f *CreateIssueForm) Validate(ctx *macaron.Context, errs binding.Errors) bi
return validate(errs, ctx.Data, f, ctx.Locale)
}
+type CreateCommentForm struct {
+ Content string
+ NewStatus string `binding:"OmitEmpty;In(reopen,close)"`
+ Attachments []string
+}
+
+func (f *CreateCommentForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
+ return validate(errs, ctx.Data, f, ctx.Locale)
+}
+
// _____ .__.__ __
// / \ |__| | ____ _______/ |_ ____ ____ ____
// / \ / \| | | _/ __ \ / ___/\ __\/ _ \ / \_/ __ \