mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	Add archived label for code search results in archived repo's (#17817)
* Add archived label for code search results in archived repo's * Remove trailing whitespace Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		@@ -37,7 +37,13 @@
 | 
				
			|||||||
						{{$repo := (index $.RepoMaps .RepoID)}}
 | 
											{{$repo := (index $.RepoMaps .RepoID)}}
 | 
				
			||||||
						<div class="diff-file-box diff-box file-content non-diff-file-content repo-search-result">
 | 
											<div class="diff-file-box diff-box file-content non-diff-file-content repo-search-result">
 | 
				
			||||||
							<h4 class="ui top attached normal header">
 | 
												<h4 class="ui top attached normal header">
 | 
				
			||||||
								<span class="file"><a rel="nofollow" href="{{$repo.HTMLURL}}">{{$repo.FullName}}</a> - {{.Filename}}</span>
 | 
													<span class="file">
 | 
				
			||||||
 | 
														<a rel="nofollow" href="{{$repo.HTMLURL}}">{{$repo.FullName}}</a>
 | 
				
			||||||
 | 
															{{if $repo.IsArchived}}
 | 
				
			||||||
 | 
																<span class="ui basic label">{{$.i18n.Tr "repo.desc.archived"}}</span>
 | 
				
			||||||
 | 
															{{end}}
 | 
				
			||||||
 | 
														- {{.Filename}}
 | 
				
			||||||
 | 
													</span>
 | 
				
			||||||
								<a class="ui basic tiny button" rel="nofollow" href="{{$repo.HTMLURL}}/src/commit/{{$result.CommitID | PathEscape}}/{{.Filename | PathEscapeSegments}}">{{$.i18n.Tr "repo.diff.view_file"}}</a>
 | 
													<a class="ui basic tiny button" rel="nofollow" href="{{$repo.HTMLURL}}/src/commit/{{$result.CommitID | PathEscape}}/{{.Filename | PathEscapeSegments}}">{{$.i18n.Tr "repo.diff.view_file"}}</a>
 | 
				
			||||||
							</h4>
 | 
												</h4>
 | 
				
			||||||
							<div class="ui attached table segment">
 | 
												<div class="ui attached table segment">
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user