aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/repo_form.go
diff options
context:
space:
mode:
authorThibault Meyer <0xbaadf00d@users.noreply.github.com>2016-08-30 04:02:49 +0200
committer无闻 <u@gogs.io>2016-08-29 19:02:49 -0700
commit92fb30c5260cc067da28ae3cd031b76f7b7976db (patch)
tree50855703a1044069861620ca32f98e812627ea59 /modules/auth/repo_form.go
parent9f44c267899fabd0b180cdf6cd41e6d77b2fb423 (diff)
downloadgitea-92fb30c5260cc067da28ae3cd031b76f7b7976db.tar.gz
gitea-92fb30c5260cc067da28ae3cd031b76f7b7976db.zip
Load a set of predefined labels (#3459)
* Can use a predefined set of labels * Change UI * Fix HTML file indentation * Avoid reading file from other directory (security issue) * Apply a better fix * Remove not used variable * Merge upstream/develop * Do modifications * Raname * remove binding + rename variable
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 e537da8a6c..194f332695 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -220,6 +220,16 @@ func (f *CreateLabelForm) Validate(ctx *macaron.Context, errs binding.Errors) bi
return validate(errs, ctx.Data, f, ctx.Locale)
}
+// Label templates
+
+type InitializeLabelsForm struct {
+ TemplateName string `binding:"Required"`
+}
+
+func (f *InitializeLabelsForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
+ return validate(errs, ctx.Data, f, ctx.Locale)
+}
+
// __________ .__
// \______ \ ____ | | ____ _____ ______ ____
// | _// __ \| | _/ __ \\__ \ / ___// __ \