repo_editor: able to trigger Git hooks (#4338)

This commit is contained in:
Unknwon
2018-08-17 23:15:20 +08:00
parent 33434a40d7
commit ac73d43444
8 changed files with 137 additions and 209 deletions

View File

@@ -72,6 +72,10 @@ func (c *Context) RequireAutosize() {
c.Require("Autosize")
}
func (c *Context) RequireDropzone() {
c.Require("Dropzone")
}
// FormErr sets "Err_xxx" field in template data.
func (c *Context) FormErr(names ...string) {
for i := range names {