mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	This commit adds the "You recently pushed to branch X" alert also to PR overview, as opposed to only the repository's home page. GitHub also shows this alert on the PR list, as well as the home page. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
		
			
				
	
	
		
			30 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
| {{template "base/head" .}}
 | |
| <div role="main" aria-label="{{.Title}}" class="page-content repository file list {{if .IsBlame}}blame{{end}}">
 | |
| 	{{template "repo/header" .}}
 | |
| 	<div class="ui container {{if or .TreeNames .IsBlame}}fluid padded{{end}}">
 | |
| 		{{template "base/alert" .}}
 | |
| 
 | |
| 		{{if .Repository.IsArchived}}
 | |
| 			<div class="ui warning message tw-text-center">
 | |
| 				{{if .Repository.ArchivedUnix.IsZero}}
 | |
| 					{{ctx.Locale.Tr "repo.archive.title"}}
 | |
| 				{{else}}
 | |
| 					{{ctx.Locale.Tr "repo.archive.title_date" (DateUtils.AbsoluteLong .Repository.ArchivedUnix)}}
 | |
| 				{{end}}
 | |
| 			</div>
 | |
| 		{{end}}
 | |
| 
 | |
| 		{{template "repo/code/recently_pushed_new_branches" dict "RecentBranchesPromptData" .RecentBranchesPromptData}}
 | |
| 
 | |
| 		<div class="repo-view-container">
 | |
| 			<div class="tw-flex tw-flex-col repo-view-file-tree-container not-mobile {{if not .UserSettingCodeViewShowFileTree}}tw-hidden{{end}}" {{if .IsSigned}}data-user-is-signed-in{{end}}>
 | |
| 				{{template "repo/view_file_tree" .}}
 | |
| 			</div>
 | |
| 			<div class="repo-view-content">
 | |
| 				{{template "repo/view_content" .}}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 	</div>
 | |
| </div>
 | |
| {{template "base/footer" .}}
 |