mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
| <h4 class="ui top attached header">
 | |
| 	{{ctx.Locale.Tr "repository"}}
 | |
| </h4>
 | |
| <div class="ui attached segment">
 | |
| 	<form class="ui form form-fetch-action" method="post" action="{{AppSubUrl}}/-/admin/config">
 | |
| 		<div class="field">
 | |
| 			<details>
 | |
| 				<summary>{{ctx.Locale.Tr "admin.config.open_with_editor_app_help"}}</summary>
 | |
| 				<pre class="tw-px-4">{{.DefaultOpenWithEditorAppsString}}</pre>
 | |
| 			</details>
 | |
| 		</div>
 | |
| 		<div class="field">
 | |
| 			{{$cfg := .SystemConfig.Repository.OpenWithEditorApps}}
 | |
| 			<input type="hidden" name="key" value="{{$cfg.DynKey}}">
 | |
| 			<textarea name="value">{{($cfg.Value ctx).ToTextareaString}}</textarea>
 | |
| 		</div>
 | |
| 
 | |
| 		<div class="field">
 | |
| 			<label>{{ctx.Locale.Tr "admin.config.git_guide_remote_name"}}</label>
 | |
| 			{{$cfg = .SystemConfig.Repository.GitGuideRemoteName}}
 | |
| 			<input type="hidden" name="key" value="{{$cfg.DynKey}}">
 | |
| 			<input name="value" value="{{$cfg.Value ctx}}" placeholder="{{$cfg.DefaultValue}}" maxlength="100" dir="auto" required pattern="^[A-Za-z0-9][\-_A-Za-z0-9]*$">
 | |
| 		</div>
 | |
| 		<div class="field">
 | |
| 			<button class="ui primary button">{{ctx.Locale.Tr "save"}}</button>
 | |
| 		</div>
 | |
| 	</form>
 | |
| </div>
 |