mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							194a11eb11
						
					
				
				
					commit
					0a24f5cac8
				
			@@ -165,6 +165,9 @@ func NewFuncMap() []template.FuncMap {
 | 
				
			|||||||
		"DisableGitHooks": func() bool {
 | 
							"DisableGitHooks": func() bool {
 | 
				
			||||||
			return setting.DisableGitHooks
 | 
								return setting.DisableGitHooks
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 | 
							"DisableImportLocal": func() bool {
 | 
				
			||||||
 | 
								return !setting.ImportLocalPaths
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		"TrN": TrN,
 | 
							"TrN": TrN,
 | 
				
			||||||
		"Dict": func(values ...interface{}) (map[string]interface{}, error) {
 | 
							"Dict": func(values ...interface{}) (map[string]interface{}, error) {
 | 
				
			||||||
			if len(values)%2 != 0 {
 | 
								if len(values)%2 != 0 {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -92,7 +92,7 @@
 | 
				
			|||||||
				<div class="inline field">
 | 
									<div class="inline field">
 | 
				
			||||||
					<div class="ui checkbox">
 | 
										<div class="ui checkbox">
 | 
				
			||||||
						<label><strong>{{.i18n.Tr "admin.users.allow_import_local"}}</strong></label>
 | 
											<label><strong>{{.i18n.Tr "admin.users.allow_import_local"}}</strong></label>
 | 
				
			||||||
						<input name="allow_import_local" type="checkbox" {{if .User.CanImportLocal}}checked{{end}}>
 | 
											<input name="allow_import_local" type="checkbox" {{if .User.CanImportLocal}}checked{{end}} {{if DisableImportLocal}}disabled{{end}}>
 | 
				
			||||||
					</div>
 | 
										</div>
 | 
				
			||||||
				</div>
 | 
									</div>
 | 
				
			||||||
				{{if not .DisableRegularOrgCreation}}
 | 
									{{if not .DisableRegularOrgCreation}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user