Skip to content

Commit

Permalink
Hide last indexed SHA when a repo could not be indexed yet (go-gite…
Browse files Browse the repository at this point in the history
  • Loading branch information
CaiCandong authored and GiteaBot committed Aug 5, 2023
1 parent 8a97cdd commit 0bd903d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/repo/settings/options.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 0bd903d

Please sign in to comment.