work on #470 and fix miror JS issue when choose targets on compare and pull

This commit is contained in:
Unknwon committed 2015-10-29 21:09:48 -04:00
1 parent 706b0f72e2
commit 7d72c8333e
7 files changed
+26 -18

No files matched your search

+2 -1
View File
@@ -111,7 +111,7 @@ admin_title = Admin Account Settings
admin_name = Username
admin_password = Password
confirm_password = Confirm Password
admin_email = E-mail
admin_email = Admin E-mail
install_gogs = Install Gogs
test_git_failed = Fail to test 'git' command: %v
sqlite3_not_available = Your release version does not support SQLite3, please download the official binary version from %s, NOT the gobuild version.
@@ -192,6 +192,7 @@ min_size_error = ` must contain at least %s characters.`
max_size_error = ` must contain at most %s characters.`
email_error = ` is not a valid e-mail address.`
url_error = ` is not a valid URL.`
include_error = ` must contain substring '%s'.`
unknown_error = Unknown error:
captcha_incorrect = Captcha didn't match.
password_not_match = Password and confirm password are not same.
+10 -4
View File
@@ -181,7 +181,7 @@ func AssignForm(form interface{}, data map[string]interface{}) {
}
}
func getSize(field reflect.StructField, prefix string) string {
func getRuleBody(field reflect.StructField, prefix string) string {
for _, rule := range strings.Split(field.Tag.Get("binding"), ";") {
if strings.HasPrefix(rule, prefix) {
return rule[len(prefix) : len(rule)-1]
@@ -191,15 +191,19 @@ func getSize(field reflect.StructField, prefix string) string {
}
func GetSize(field reflect.StructField) string {
return getSize(field, "Size(")
return getRuleBody(field, "Size(")
}
func GetMinSize(field reflect.StructField) string {
return getSize(field, "MinSize(")
return getRuleBody(field, "MinSize(")
}
func GetMaxSize(field reflect.StructField) string {
return getSize(field, "MaxSize(")
return getRuleBody(field, "MaxSize(")
}
func GetInclude(field reflect.StructField) string {
return getRuleBody(field, "Include(")
}
// FIXME: struct contains a struct
@@ -260,6 +264,8 @@ func validate(errs binding.Errors, data map[string]interface{}, f Form, l macaro
data["ErrorMsg"] = trName + l.Tr("form.email_error")
case binding.ERR_URL:
data["ErrorMsg"] = trName + l.Tr("form.url_error")
case binding.ERR_INCLUDE:
data["ErrorMsg"] = trName + l.Tr("form.include_error", GetInclude(field))
default:
data["ErrorMsg"] = l.Tr("form.unknown_error") + " " + errs[0].Classification
}
+1 -1
View File
@@ -44,7 +44,7 @@ type InstallForm struct {
AdminName string `binding:"OmitEmpty;AlphaDashDot;MaxSize(30)" locale:"install.admin_name"`
AdminPasswd string `binding:"OmitEmpty;MaxSize(255)" locale:"install.admin_password"`
AdminConfirmPasswd string
AdminEmail string `binding:"OmitEmpty;Email;MaxSize(50)" locale:"install.admin_email"`
AdminEmail string `binding:"OmitEmpty;MinSize(3);MaxSize(50);Include(@)" locale:"install.admin_email"`
}
func (f *InstallForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
+2 -2
View File
@@ -4364,7 +4364,7 @@ func confLocaleLocale_deDeIni() (*asset, error) {
return a, nil
}
var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\x7d\xeb\x72\xdc\x48\xae\xe6\x7f\x3e\x05\xdb\x13\x5e\xdb\x11\x72\x39\xba\x7b\x6f\xd1\xd1\x76\xaf\x2c\xb5\x2f\x73\x2c\x4b\x63\xa9\x67\x76\xd6\xe1\x60\xb3\x8a\xac\x2a\x8e\xab\xc8\x6a\x92\x65\x59\x73\xe2\x44\xec\x03\xec\x03\xec\xbe\xde\x79\x92\x05\x3e\x00\x79\x21\x59\x92\xdd\x33\x71\xfe\x48\xac\x4c\xe4\x0d\x89\x44\x22\x91\x00\x32\xdf\xed\xb2\xa2\xec\x16\xe9\xd3\xf4\x38\xdd\xe5\x55\xbd\x29\xbb\x2e\xed\xca\xcd\xf2\xf1\xba\xe9\xfa\xb2\x48\x5f\x56\x3d\xfd\x6e\x3f\x55\x8b\x32\x49\xd6\xcd\xb6\x24\xd0\x57\xf4\x2f\x29\xf2\x6e\x3d\x6f\xf2\xb6\xa0\x84\x53\xfb\x4e\xca\xcf\xbb\x4d\xd3\x32\xd0\xcf\xf2\x95\xac\xcb\xcd\x8e\xcb\xd0\xbf\xa4\xab\x56\x75\x56\xd5\xf4\xf3\x92\xbe\xd2\xd7\xb5\xa4\x34\xfb\xde\x92\xce\xf7\xbd\xa4\xed\x77\x96\xf4\xcb\x2e\x69\xcb\x55\x45\xbd\x69\x29\xe9\x9d\x7e\x26\xd7\xe5\xbc\xab\x7a\x6e\xe9\x2f\xf2\x95\x7c\x2a\xdb\xae\x6a\xb8\xf6\x3f\xcb\x57\xb2\xcb\x57\x0c\x70\x41\xff\x92\xbe\xdc\xee\x36\x39\x0a\x5c\xe9\x67\xb2\xc9\xeb\xd5\x5e\x60\xde\xe8\x67\xb2\x68\x4b\xca\xca\xea\xf2\x9a\x52\x4f\xf0\x63\x36\x9b\x25\x7b\x42\x42\xb6\x6b\x9b\x65\xb5\x29\xb3\xbc\x2e\xb2\xad\x0c\xf3\x17\x4a\x4f\x35\x3d\xa5\xf4\x94\xd3\x31\x84\xb2\xa0\xa1\x66\x79\xa7\xe3\x20\x5c\xd2\xc8\xf3\x2e\x41\x55\x75\xbe\xb5\xd2\xfc\x99\x94\xdb\xbc\xda\x30\xd6\x1e\xf3\x07\x75\xbc\xeb\xae\x1b\xe0\xf6\x42\x3f\x09\x09\x59\x7f\xb3\x2b\x81\x83\xc7\x57\xf4\x95\x2c\xf2\x5d\xbf\x58\xe7\xdc\x4f\xf9\x4a\x08\x68\xd7\x10\x32\x9a\xf6\x06\x70\xf6\x23\x69\xda\x55\x5e\x57\x7f\xcf\x7b\x41\xd0\x79\xf0\x33\xd9\x56\x6d\xdb\x30\x6e\xcf\xf0\x91\xd0\xd0\x33\xae\x87\x52\xde\x12\x16\x82\x5a\x38\x67\x5b\xad\x5a\x41\x23\x67\x9e\xe1\x17\xd7\xc2\x79\xcb\xa6\xfd\xa8\x19\x2f\xf8\x73\x50\x94\x3a\xa1\xb9\x71\xfb\x79\x4d\x88\xd7\xdc\x33\xfc\x88\x00\xba\x24\x2f\xb6\x84\xca\x5d\x5e\x97\x8c\xa3\x63\xfe\x45\x78\xa1\x5f\x49\xbe\x58\x34\xfb\xba\xcf\xba\xb2\xef\xab\x7a\xc5\xc8\x3e\x96\xa4\xf4\x52\x93\x92\x20\xcf\xa5\xdd\x34\x7b\x37\x9d\x94\xfe\x57\xfa\x99\x5e\xc8\x4f\xc9\x0b\x0a\x21\xd3\x95\xe4\x91\x74\xd9\xb2\x2c\x0b\x19\x4b\x97\xbe\xa0\xef\x64\xb7\xdf\x6c\x08\x6b\xbf\xed\xcb\xae\xe7\x42\x17\xf4\x9b\xc6\x2f\xbf\x93\xaa\xeb\xe8\x83\x92\x5f\xe3\x23\xa1\xa9\xab\x17\x18\xcc\x09\x3e\x92\xe4\x7d\x57\xe6\xed\x62\xfd\x21\x91\xff\xe8\x2b\x7f\x30\xed\x1d\x9a\x54\x26\x24\x25\x22\x69\xc1\x1a\x48\x16\x4d\xc1\x3f\x4e\xe8\x1f\x55\x5d\xd5\x5d\x9f\x6f\x36\x1f\x12\xfd\x60\x30\xf9\x92\x09\xe8\xab\x1e\x58\xd0\xc4\xf4\xb2\x2f\x77\x1d\xcf\x60\xfa\xa2\x6a\xbb\xfe\x71\x5f\x11\xb1\xbe\xdb\xd7\x49\xd1\x2c\x3e\xd2\x32\xe0\x25\x8d\x96\x5f\x2f\x53\x42\xd6\x03\x5a\x08\xed\xbe\xae\x09\x3d\xe9\xcb\x86\x50\x46\xcd\x54\xd4\xfe\x29\xa0\x8f\xd2\xdd\xa6\xcc\x3b\x02\x29\xf3\x22\xfd\x31\x4f\xfb\xbc\x5d\x95\xfd\xd3\x7b\xd9\x9c\x96\xdf\xc7\x7b\xe9\xba\x2d\x97\x4f\xef\xdd\xef\xee\x3d\x7b\xb9\xa7\x62\x9b\xaa\x2e\xbb\x1f\x9f\xe4\xcf\xd2\x45\x4e\x39\x84\xc6\x9b\x74\x5e\x2e\x79\xb5\x51\x5b\x29\x51\x79\xbd\xe2\x95\x76\xd3\xaf\xb9\x41\xa2\x04\xfa\xe8\x52\x5e\xea\xdf\x24\x3c\x01\xc4\x0a\xb2\x62\x6e\x6c\x0d\x1d\x42\x72\x4b\x13\x70\x76\x73\xf9\xa7\x37\x47\xe9\x05\xf1\xb6\x55\x5b\xe2\x9b\xfe\x50\x89\xef\x53\x1a\xed\x55\x75\xfa\x7c\x96\x50\x59\x43\xc8\x69\xde\xe7\x73\xee\xbb\x9b\x7d\xce\x94\x45\xe8\xf2\xb0\x14\x99\x5b\x82\x33\x76\x7d\x34\x2d\x53\x0b\x99\xea\xd0\xe5\xef\xea\x78\xcb\x3c\x80\xd2\x1d\x66\x2f\x04\x67\x54\x55\xfa\xfa\xed\xdb\xf3\xd3\xe7\x69\x59\xaf\x08\x33\xe9\x75\xd5\xaf\xd3\x7d\xbf\xfc\xef\xd9\xaa\xac\xcb\x36\xdf\x64\x8b\x8a\x91\xd2\x12\xc1\xa6\x84\x25\x19\xe2\x2c\xe9\xba\x0d\xb1\x28\x50\xc1\xe5\xe5\x9b\xf4\x8c\x29\x61\x97\xf7\x6b\x74\xa4\x5f\x27\xdd\x6f\x1b\x46\x94\x6b\xf0\x6a\x5d\xa6\x58\x0c\x00\x6a\x96\x43\xbc\xa4\x85\xf6\x75\x96\x94\x6d\x9b\x11\x07\xed\x6f\x18\xcd\x5a\xe7\x21\x68\xa9\x8e\xa8\xbd\x6e\x7a\x9a\xc6\x14\xe5\xa4\x8a\xaa\xfe\x94\x6f\xaa\x82\x90\xed\x11\x12\x97\x45\x62\xd1\xd0\xbc\x71\x69\xa2\xcc\xe6\x1a\x43\xcd\x17\xb4\x01\x74\xe9\xbd\xd9\x3d\x70\xdc\x7b\x8f\xef\xcd\x92\xba\xc9\x84\x4b\x30\x6f\x2e\xaa\x2e\x9f\x13\x9f\x96\x7d\xa3\x35\xae\xf7\x57\xa6\x1f\xe9\x8a\x42\xa4\x11\x04\xe3\x96\xf7\x22\x6c\x01\x4c\x5c\x39\x31\x6c\x30\x1b\x65\x33\xe1\xd8\x8d\x27\xb9\xf9\x15\xb6\xe4\x12\x46\x63\x4e\x6c\xc2\x8c\xba\x8e\x77\xbb\x4d\xb5\x90\xa6\x5f\x4a\x9e\x27\x34\xde\x99\x15\x29\x21\x1c\x08\xc5\xf2\x02\x72\xa1\x5e\x33\xdb\x4a\x23\x3e\x8f\xf2\xeb\x92\x56\xce\x7a\xbf\x92\xdd\x69\xd3\xec\x8b\x6f\xc0\x50\x6c\xe6\x3c\x3f\x49\xdf\x35\xd4\x61\x50\x87\x03\xf0\x4d\x1c\x13\x63\x60\x61\xa0\x2d\xb7\x4d\xcf\x88\xd3\x62\x15\x4d\xcf\x75\x45\x99\x34\xd2\x2e\xff\x44\x6c\xb1\x6f\x64\x49\x16\xb4\xe4\x16\x5c\x31\x71\xb0\x3d\xed\xe8\xb2\x2c\x88\x8f\xc8\xd2\xb0\xb4\x98\x06\x01\xb5\xdd\xd3\x6a\x5a\x53\x65\x8c\x78\x96\x48\xa8\xca\xa9\x7e\x62\x48\x54\x0f\x56\x39\xad\xdc\x86\x36\x4f\x9e\xe8\x53\x7c\xe8\xef\xb0\x7e\xea\x55\xbe\x5c\x52\xaf\x3a\x5a\x15\xaf\xd2\xc5\xa6\xa1\x25\xf5\xcb\xbb\x37\x1d\x2f\x98\x75\xb6\x6b\x5a\x48\x22\x94\x75\x41\x9f\x2e\x2d\x40\x34\x43\xd4\xfb\xed\x9c\x7e\x5d\xaf\x2b\x62\xd4\x40\x3b\x97\x60\x29\x89\x52\xa9\x89\x7d\x47\x53\x78\x94\xd2\x12\xa6\x1Line truncated
var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\x7d\xeb\x72\xdc\x48\xae\xe6\x7f\x3e\x05\xdb\x13\x5e\xdb\x11\x72\x39\xba\x7b\x6f\xd1\xd1\x76\xaf\x2c\xb5\x2f\x73\x2c\x4b\x63\xa9\x67\x76\xd6\xe1\x60\xb3\x8a\xac\x2a\x8e\xab\xc8\x6a\x92\x65\x59\x73\xe2\x44\xec\x03\xec\x03\xec\xbe\xde\x79\x92\x05\x3e\x00\x79\x21\x59\x92\xdd\x33\x71\xfe\x48\xac\x4c\xe4\x0d\x89\x44\x22\x91\x00\x32\xdf\xed\xb2\xa2\xec\x16\xe9\xd3\xf4\x38\xdd\xe5\x55\xbd\x29\xbb\x2e\xed\xca\xcd\xf2\xf1\xba\xe9\xfa\xb2\x48\x5f\x56\x3d\xfd\x6e\x3f\x55\x8b\x32\x49\xd6\xcd\xb6\x24\xd0\x57\xf4\x2f\x29\xf2\x6e\x3d\x6f\xf2\xb6\xa0\x84\x53\xfb\x4e\xca\xcf\xbb\x4d\xd3\x32\xd0\xcf\xf2\x95\xac\xcb\xcd\x8e\xcb\xd0\xbf\xa4\xab\x56\x75\x56\xd5\xf4\xf3\x92\xbe\xd2\xd7\xb5\xa4\x34\xfb\xde\x92\xce\xf7\xbd\xa4\xed\x77\x96\xf4\xcb\x2e\x69\xcb\x55\x45\xbd\x69\x29\xe9\x9d\x7e\x26\xd7\xe5\xbc\xab\x7a\x6e\xe9\x2f\xf2\x95\x7c\x2a\xdb\xae\x6a\xb8\xf6\x3f\xcb\x57\xb2\xcb\x57\x0c\x70\x41\xff\x92\xbe\xdc\xee\x36\x39\x0a\x5c\xe9\x67\xb2\xc9\xeb\xd5\x5e\x60\xde\xe8\x67\xb2\x68\x4b\xca\xca\xea\xf2\x9a\x52\x4f\xf0\x63\x36\x9b\x25\x7b\x42\x42\xb6\x6b\x9b\x65\xb5\x29\xb3\xbc\x2e\xb2\xad\x0c\xf3\x17\x4a\x4f\x35\x3d\xa5\xf4\x94\xd3\x31\x84\xb2\xa0\xa1\x66\x79\xa7\xe3\x20\x5c\xd2\xc8\xf3\x2e\x41\x55\x75\xbe\xb5\xd2\xfc\x99\x94\xdb\xbc\xda\x30\xd6\x1e\xf3\x07\x75\xbc\xeb\xae\x1b\xe0\xf6\x42\x3f\x09\x09\x59\x7f\xb3\x2b\x81\x83\xc7\x57\xf4\x95\x2c\xf2\x5d\xbf\x58\xe7\xdc\x4f\xf9\x4a\x08\x68\xd7\x10\x32\x9a\xf6\x06\x70\xf6\x23\x69\xda\x55\x5e\x57\x7f\xcf\x7b\x41\xd0\x79\xf0\x33\xd9\x56\x6d\xdb\x30\x6e\xcf\xf0\x91\xd0\xd0\x33\xae\x87\x52\xde\x12\x16\x82\x5a\x38\x67\x5b\xad\x5a\x41\x23\x67\x9e\xe1\x17\xd7\xc2\x79\xcb\xa6\xfd\xa8\x19\x2f\xf8\x73\x50\x94\x3a\xa1\xb9\x71\xfb\x79\x4d\x88\xd7\xdc\x33\xfc\x88\x00\xba\x24\x2f\xb6\x84\xca\x5d\x5e\x97\x8c\xa3\x63\xfe\x45\x78\xa1\x5f\x49\xbe\x58\x34\xfb\xba\xcf\xba\xb2\xef\xab\x7a\xc5\xc8\x3e\x96\xa4\xf4\x52\x93\x92\x20\xcf\xa5\xdd\x34\x7b\x37\x9d\x94\xfe\x57\xfa\x99\x5e\xc8\x4f\xc9\x0b\x0a\x21\xd3\x95\xe4\x91\x74\xd9\xb2\x2c\x0b\x19\x4b\x97\xbe\xa0\xef\x64\xb7\xdf\x6c\x08\x6b\xbf\xed\xcb\xae\xe7\x42\x17\xf4\x9b\xc6\x2f\xbf\x93\xaa\xeb\xe8\x83\x92\x5f\xe3\x23\xa1\xa9\xab\x17\x18\xcc\x09\x3e\x92\xe4\x7d\x57\xe6\xed\x62\xfd\x21\x91\xff\xe8\x2b\x7f\x30\xed\x1d\x9a\x54\x26\x24\x25\x22\x69\xc1\x1a\x48\x16\x4d\xc1\x3f\x4e\xe8\x1f\x55\x5d\xd5\x5d\x9f\x6f\x36\x1f\x12\xfd\x60\x30\xf9\x92\x09\xe8\xab\x1e\x58\xd0\xc4\xf4\xb2\x2f\x77\x1d\xcf\x60\xfa\xa2\x6a\xbb\xfe\x71\x5f\x11\xb1\xbe\xdb\xd7\x49\xd1\x2c\x3e\xd2\x32\xe0\x25\x8d\x96\x5f\x2f\x53\x42\xd6\x03\x5a\x08\xed\xbe\xae\x09\x3d\xe9\xcb\x86\x50\x46\xcd\x54\xd4\xfe\x29\xa0\x8f\xd2\xdd\xa6\xcc\x3b\x02\x29\xf3\x22\xfd\x31\x4f\xfb\xbc\x5d\x95\xfd\xd3\x7b\xd9\x9c\x96\xdf\xc7\x7b\xe9\xba\x2d\x97\x4f\xef\xdd\xef\xee\x3d\x7b\xb9\xa7\x62\x9b\xaa\x2e\xbb\x1f\x9f\xe4\xcf\xd2\x45\x4e\x39\x84\xc6\x9b\x74\x5e\x2e\x79\xb5\x51\x5b\x29\x51\x79\xbd\xe2\x95\x76\xd3\xaf\xb9\x41\xa2\x04\xfa\xe8\x52\x5e\xea\xdf\x24\x3c\x01\xc4\x0a\xb2\x62\x6e\x6c\x0d\x1d\x42\x72\x4b\x13\x70\x76\x73\xf9\xa7\x37\x47\xe9\x05\xf1\xb6\x55\x5b\xe2\x9b\xfe\x50\x89\xef\x53\x1a\xed\x55\x75\xfa\x7c\x96\x50\x59\x43\xc8\x69\xde\xe7\x73\xee\xbb\x9b\x7d\xce\x94\x45\xe8\xf2\xb0\x14\x99\x5b\x82\x33\x76\x7d\x34\x2d\x53\x0b\x99\xea\xd0\xe5\xef\xea\x78\xcb\x3c\x80\xd2\x1d\x66\x2f\x04\x67\x54\x55\xfa\xfa\xed\xdb\xf3\xd3\xe7\x69\x59\xaf\x08\x33\xe9\x75\xd5\xaf\xd3\x7d\xbf\xfc\xef\xd9\xaa\xac\xcb\x36\xdf\x64\x8b\x8a\x91\xd2\x12\xc1\xa6\x84\x25\x19\xe2\x2c\xe9\xba\x0d\xb1\x28\x50\xc1\xe5\xe5\x9b\xf4\x8c\x29\x61\x97\xf7\x6b\x74\xa4\x5f\x27\xdd\x6f\x1b\x46\x94\x6b\xf0\x6a\x5d\xa6\x58\x0c\x00\x6a\x96\x43\xbc\xa4\x85\xf6\x75\x96\x94\x6d\x9b\x11\x07\xed\x6f\x18\xcd\x5a\xe7\x21\x68\xa9\x8e\xa8\xbd\x6e\x7a\x9a\xc6\x14\xe5\xa4\x8a\xaa\xfe\x94\x6f\xaa\x82\x90\xed\x11\x12\x97\x45\x62\xd1\xd0\xbc\x71\x69\xa2\xcc\xe6\x1a\x43\xcd\x17\xb4\x01\x74\xe9\xbd\xd9\x3d\x70\xdc\x7b\x8f\xef\xcd\x92\xba\xc9\x84\x4b\x30\x6f\x2e\xaa\x2e\x9f\x13\x9f\x96\x7d\xa3\x35\xae\xf7\x57\xa6\x1f\xe9\x8a\x42\xa4\x11\x04\xe3\x96\xf7\x22\x6c\x01\x4c\x5c\x39\x31\x6c\x30\x1b\x65\x33\xe1\xd8\x8d\x27\xb9\xf9\x15\xb6\xe4\x12\x46\x63\x4e\x6c\xc2\x8c\xba\x8e\x77\xbb\x4d\xb5\x90\xa6\x5f\x4a\x9e\x27\x34\xde\x99\x15\x29\x21\x1c\x08\xc5\xf2\x02\x72\xa1\x5e\x33\xdb\x4a\x23\x3e\x8f\xf2\xeb\x92\x56\xce\x7a\xbf\x92\xdd\x69\xd3\xec\x8b\x6f\xc0\x50\x6c\xe6\x3c\x3f\x49\xdf\x35\xd4\x61\x50\x87\x03\xf0\x4d\x1c\x13\x63\x60\x61\xa0\x2d\xb7\x4d\xcf\x88\xd3\x62\x15\x4d\xcf\x75\x45\x99\x34\xd2\x2e\xff\x44\x6c\xb1\x6f\x64\x49\x16\xb4\xe4\x16\x5c\x31\x71\xb0\x3d\xed\xe8\xb2\x2c\x88\x8f\xc8\xd2\xb0\xb4\x98\x06\x01\xb5\xdd\xd3\x6a\x5a\x53\x65\x8c\x78\x96\x48\xa8\xca\xa9\x7e\x62\x48\x54\x0f\x56\x39\xad\xdc\x86\x36\x4f\x9e\xe8\x53\x7c\xe8\xef\xb0\x7e\xea\x55\xbe\x5c\x52\xaf\x3a\x5a\x15\xaf\xd2\xc5\xa6\xa1\x25\xf5\xcb\xbb\x37\x1d\x2f\x98\x75\xb6\x6b\x5a\x48\x22\x94\x75\x41\x9f\x2e\x2d\x40\x34\x43\xd4\xfb\xed\x9c\x7e\x5d\xaf\x2b\x62\xd4\x40\x3b\x97\x60\x29\x89\x52\xa9\x89\x7d\x47\x53\x78\x94\xd2\x12\xa6\x1Line truncated
func confLocaleLocale_enUsIniBytes() ([]byte, error) {
return bindataRead(
@@ -4379,7 +4379,7 @@ func confLocaleLocale_enUsIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 44452, mode: os.FileMode(420), modTime: time.Unix(1445760430, 0)}
info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 44506, mode: os.FileMode(420), modTime: time.Unix(1446167298, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
+9 -9
View File
@@ -384,16 +384,15 @@ function initRepository() {
// Diff
if ($('.repository.diff').length > 0) {
var $counter = $('.diff-counter');
if ($counter.length < 1) {
return;
if ($counter.length >= 1) {
$counter.each(function (i, item) {
var $item = $(item);
var addLine = $item.find('span[data-line].add').data("line");
var delLine = $item.find('span[data-line].del').data("line");
var addPercent = parseFloat(addLine) / (parseFloat(addLine) + parseFloat(delLine)) * 100;
$item.find(".bar .add").css("width", addPercent + "%");
});
}
$counter.each(function (i, item) {
var $item = $(item);
var addLine = $item.find('span[data-line].add').data("line");
var delLine = $item.find('span[data-line].del').data("line");
var addPercent = parseFloat(addLine) / (parseFloat(addLine) + parseFloat(delLine)) * 100;
$item.find(".bar .add").css("width", addPercent + "%");
});
}
// Quick start
@@ -419,6 +418,7 @@ function initRepository() {
fullTextSearch: true,
onChange: function (text, value, $choice) {
window.location.href = $choice.data('url');
console.log($choice.data('url'))
},
message: {noResults: $branch_dropdown.data('no-results')}
});
+1
View File
@@ -173,6 +173,7 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) {
ctx.HTML(200, INSTALL)
return
}
return
if _, err := exec.LookPath("git"); err != nil {
ctx.RenderWithErr(ctx.Tr("install.test_git_failed", err), INSTALL, &form)
+1 -1
View File
@@ -214,7 +214,7 @@
</div>
<div class="inline field {{if .Err_AdminEmail}}error{{end}}">
<label for="admin_email">{{.i18n.Tr "install.admin_email"}}</label>
<input id="admin_email" name="admin_email" value="{{.admin_email}}">
<input id="admin_email" name="admin_email" type="email1" value="{{.admin_email}}">
</div>
</div>
</div>