mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Fix display latest sync time for pull mirrors on the repo page (#28841)
Follow #28712 1. Missing Locale word `mirror_sync` 2. Maybe forgot checking the conflict from #27760 Before:  After: 
This commit is contained in:
		| @@ -987,6 +987,7 @@ mirror_prune = Prune | |||||||
| mirror_prune_desc = Remove obsolete remote-tracking references | mirror_prune_desc = Remove obsolete remote-tracking references | ||||||
| mirror_interval = Mirror Interval (valid time units are 'h', 'm', 's'). 0 to disable periodic sync. (Minimum interval: %s) | mirror_interval = Mirror Interval (valid time units are 'h', 'm', 's'). 0 to disable periodic sync. (Minimum interval: %s) | ||||||
| mirror_interval_invalid = The mirror interval is not valid. | mirror_interval_invalid = The mirror interval is not valid. | ||||||
|  | mirror_sync = synced | ||||||
| mirror_sync_on_commit = Sync when commits are pushed | mirror_sync_on_commit = Sync when commits are pushed | ||||||
| mirror_address = Clone From URL | mirror_address = Clone From URL | ||||||
| mirror_address_desc = Put any required credentials in the Authorization section. | mirror_address_desc = Put any required credentials in the Authorization section. | ||||||
|   | |||||||
| @@ -28,13 +28,6 @@ | |||||||
| 						<div class="repo-icon" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.template"}}">{{svg "octicon-repo-template" 18}}</div> | 						<div class="repo-icon" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.template"}}">{{svg "octicon-repo-template" 18}}</div> | ||||||
| 					{{end}} | 					{{end}} | ||||||
| 				</div> | 				</div> | ||||||
| 				{{if $.PullMirror}} |  | ||||||
| 					<div class="fork-flag"> |  | ||||||
| 						{{ctx.Locale.Tr "repo.mirror_from"}} |  | ||||||
| 						<a target="_blank" rel="noopener noreferrer" href="{{$.PullMirror.RemoteAddress}}">{{$.PullMirror.RemoteAddress}}</a> |  | ||||||
| 						{{if $.PullMirror.UpdatedUnix}}{{ctx.Locale.Tr "repo.mirror_sync"}} {{TimeSinceUnix $.PullMirror.UpdatedUnix ctx.Locale}}{{end}} |  | ||||||
| 					</div> |  | ||||||
| 				{{end}} |  | ||||||
| 			</div> | 			</div> | ||||||
| 			{{if not (or .IsBeingCreated .IsBroken)}} | 			{{if not (or .IsBeingCreated .IsBroken)}} | ||||||
| 				<div class="repo-buttons"> | 				<div class="repo-buttons"> | ||||||
| @@ -147,7 +140,13 @@ | |||||||
| 				</div> | 				</div> | ||||||
| 			{{end}} | 			{{end}} | ||||||
| 		</div> | 		</div> | ||||||
| 		{{if $.PullMirror}}<div class="fork-flag">{{ctx.Locale.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{$.PullMirror.RemoteAddress}}">{{$.PullMirror.RemoteAddress}}</a></div>{{end}} | 		{{if $.PullMirror}} | ||||||
|  | 			<div class="fork-flag"> | ||||||
|  | 				{{ctx.Locale.Tr "repo.mirror_from"}} | ||||||
|  | 				<a target="_blank" rel="noopener noreferrer" href="{{$.PullMirror.RemoteAddress}}">{{$.PullMirror.RemoteAddress}}</a> | ||||||
|  | 				{{if $.PullMirror.UpdatedUnix}}{{ctx.Locale.Tr "repo.mirror_sync"}} {{TimeSinceUnix $.PullMirror.UpdatedUnix ctx.Locale}}{{end}} | ||||||
|  | 			</div> | ||||||
|  | 		{{end}} | ||||||
| 		{{if .IsFork}}<div class="fork-flag">{{ctx.Locale.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{.BaseRepo.FullName}}</a></div>{{end}} | 		{{if .IsFork}}<div class="fork-flag">{{ctx.Locale.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{.BaseRepo.FullName}}</a></div>{{end}} | ||||||
| 		{{if .IsGenerated}}<div class="fork-flag">{{ctx.Locale.Tr "repo.generated_from"}} <a href="{{(.TemplateRepo ctx).Link}}">{{(.TemplateRepo ctx).FullName}}</a></div>{{end}} | 		{{if .IsGenerated}}<div class="fork-flag">{{ctx.Locale.Tr "repo.generated_from"}} <a href="{{(.TemplateRepo ctx).Link}}">{{(.TemplateRepo ctx).FullName}}</a></div>{{end}} | ||||||
| 	</div> | 	</div> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user