mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
Implementing label management.
This commit is contained in:
@@ -13,8 +13,8 @@ trait LabelsControllerBase extends ControllerBase {
|
||||
case class LabelForm(labelName: String, color: String)
|
||||
|
||||
val labelForm = mapping(
|
||||
"labelName" -> trim(label("Label name", text(required, maxlength(100)))),
|
||||
"color" -> trim(label("Color", text(required, maxlength(7))))
|
||||
"newLabelName" -> trim(label("Label name", text(required, maxlength(100)))),
|
||||
"newColor" -> trim(label("Color", text(required, maxlength(7))))
|
||||
)(LabelForm.apply)
|
||||
|
||||
post("/:owner/:repository/issues/label/new", labelForm)(writableRepository { form =>
|
||||
|
||||
Reference in New Issue
Block a user