1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-27 04:38:36 +00:00

Fine tune push mirror UI (#33866)

This commit is contained in:
wxiaoguang
2025-03-14 08:03:21 +08:00
committed by GitHub
parent 8a0f7f0975
commit d879ec6d92
2 changed files with 34 additions and 29 deletions

View File

@@ -203,8 +203,17 @@
{{range .PushMirrors}}
<tr>
<td class="tw-break-anywhere">{{.RemoteAddress}}</td>
<td>{{ctx.Locale.Tr "repo.settings.mirror_settings.direction.push"}}</td>
<td>{{if .LastUpdateUnix}}{{DateUtils.FullTime .LastUpdateUnix}}{{else}}{{ctx.Locale.Tr "never"}}{{end}} {{if .LastError}}<div class="ui red label" data-tooltip-content="{{.LastError}}">{{ctx.Locale.Tr "error"}}</div>{{end}}</td>
<td>{{ctx.Locale.Tr "repo.settings.mirror_settings.direction.push"}} ({{.Interval}})</td>
<td>
<span class="flex-text-block">
{{if .LastUpdateUnix}}
{{DateUtils.FullTime .LastUpdateUnix}}
{{else}}
{{ctx.Locale.Tr "never"}}
{{end}}
{{if .LastError}}<span class="ui red label" data-tooltip-content="{{.LastError}}">{{ctx.Locale.Tr "error"}}</span>{{end}}
</span>
</td>
<td class="right aligned">
<button
class="ui tiny button show-modal"