mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-18 20:12:34 -05:00
Backport #26340 by @CaiCandong
Now, for a new repo without any commit, the Last indexed SHA field looks
like this:
Before:

After:

fix #26336
Co-authored-by: CaiCandong <50507092+CaiCandong@users.noreply.github.com>
(cherry picked from commit 59354d7135
)
This commit is contained in:
parent
92589b9b8d
commit
f597c789e1
1 changed files with 4 additions and 2 deletions
|
@ -711,9 +711,11 @@
|
|||
{{end}}
|
||||
<h4 class="ui header">{{.locale.Tr "repo.settings.admin_stats_indexer"}}</h4>
|
||||
<div class="inline fields">
|
||||
<label>{{.locale.Tr "repo.settings.admin_indexer_commit_sha"}}</label>
|
||||
{{if and .StatsIndexerStatus .StatsIndexerStatus.CommitSha}}
|
||||
<label>{{.locale.Tr "repo.settings.admin_indexer_commit_sha"}}</label>
|
||||
{{end}}
|
||||
<span class="field">
|
||||
{{if .StatsIndexerStatus}}
|
||||
{{if and .StatsIndexerStatus .StatsIndexerStatus.CommitSha}}
|
||||
<a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/commit/{{.StatsIndexerStatus.CommitSha}}">
|
||||
<span class="shortsha">{{ShortSha .StatsIndexerStatus.CommitSha}}</span>
|
||||
</a>
|
||||
|
|
Loading…
Add table
Reference in a new issue