mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-20 13:35:48 +01:00
Hide last indexed SHA
when a repo could not be indexed yet (#26340)
Now, for a new repo without any commit, the Last indexed SHA field looks like this: Before:  After:  Fixes #26336
This commit is contained in:
parent
952882fe4a
commit
9ac6bb053c
@ -680,9 +680,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…
Reference in New Issue
Block a user