diff options
author | Thibault Meyer <0xbaadf00d@users.noreply.github.com> | 2016-08-30 04:02:49 +0200 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-08-29 19:02:49 -0700 |
commit | 92fb30c5260cc067da28ae3cd031b76f7b7976db (patch) | |
tree | 50855703a1044069861620ca32f98e812627ea59 /modules/auth/repo_form.go | |
parent | 9f44c267899fabd0b180cdf6cd41e6d77b2fb423 (diff) | |
download | gitea-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.go | 10 |
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) +} + // __________ .__ // \______ \ ____ | | ____ _____ ______ ____ // | _// __ \| | _/ __ \\__ \ / ___// __ \ |