File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,7 @@ enable_update_checker = Enable Update Checker
352352enable_update_checker_helper  = Checks for new version releases periodically by connecting to gitea.io.
353353env_config_keys  = Environment Configuration
354354env_config_keys_prompt  = The following environment variables will also be applied to your configuration file:
355+ config_write_file_prompt  = These configuration options will be written into:
355356
356357[home] 
357358nav_menu  = Navigation Menu
Original file line number Diff line number Diff line change @@ -133,11 +133,6 @@ func DeleteBranch(ctx *context.APIContext) {
133133
134134	branchName  :=  ctx .PathParam ("*" )
135135
136- 	if  ctx .Repo .Repository .IsEmpty  {
137- 		ctx .Error (http .StatusForbidden , "" , "Git Repository is empty." )
138- 		return 
139- 	}
140- 
141136	// check whether branches of this repository has been synced 
142137	totalNumOfBranches , err  :=  db .Count [git_model.Branch ](ctx , git_model.FindBranchOptions {
143138		RepoID :          ctx .Repo .Repository .ID ,
Original file line number Diff line number Diff line change 338338
339339					<div class="inline field">
340340						<div class="right-content">
341- 							These configuration options will be written into:  {{.CustomConfFile}}
341+ 							{{ctx.Locale.Tr "install.config_write_file_prompt"}} <span class="ui label">{{.CustomConfFile}}</span> <button class="btn interact-fg" data-clipboard-text=" {{.CustomConfFile}}">{{svg "octicon-copy" 14}}</button> 
342342						</div>
343343						<div class="tw-mt-4 tw-mb-2 tw-text-center">
344344							<button class="ui primary button">{{ctx.Locale.Tr "install.install_btn_confirm"}}</button>
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments