summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-03-13 04:03:55 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2018-03-13 10:03:55 +0800
commitc0d41b1b77169553006bd9211d025de4da8bafd8 (patch)
tree95c704bdd07576766e2c29533578da2f3002ab64 /modules
parentad33730dcaffed632200316a5ce5675b30ed1e99 (diff)
downloadgitea-c0d41b1b77169553006bd9211d025de4da8bafd8.tar.gz
gitea-c0d41b1b77169553006bd9211d025de4da8bafd8.zip
Add label descriptions (#3662)
* Add label descriptions * Add default descriptions to label template
Diffstat (limited to 'modules')
-rw-r--r--modules/auth/repo_form.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 634274c4e8..abe25866b6 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -310,9 +310,10 @@ func (f *CreateMilestoneForm) Validate(ctx *macaron.Context, errs binding.Errors
// CreateLabelForm form for creating label
type CreateLabelForm struct {
- ID int64
- Title string `binding:"Required;MaxSize(50)" locale:"repo.issues.label_name"`
- Color string `binding:"Required;Size(7)" locale:"repo.issues.label_color"`
+ ID int64
+ Title string `binding:"Required;MaxSize(50)" locale:"repo.issues.label_title"`
+ Description string `binding:"MaxSize(200)" locale:"repo.issues.label_description"`
+ Color string `binding:"Required;Size(7)" locale:"repo.issues.label_color"`
}
// Validate validates the fields