We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
last indexed SHA
1 parent 8a97cdd commit 0bd903dCopy full SHA for 0bd903d
templates/repo/settings/options.tmpl
@@ -711,9 +711,11 @@
711
{{end}}
712
<h4 class="ui header">{{.locale.Tr "repo.settings.admin_stats_indexer"}}</h4>
713
<div class="inline fields">
714
- <label>{{.locale.Tr "repo.settings.admin_indexer_commit_sha"}}</label>
+ {{if and .StatsIndexerStatus .StatsIndexerStatus.CommitSha}}
715
+ <label>{{.locale.Tr "repo.settings.admin_indexer_commit_sha"}}</label>
716
+ {{end}}
717
<span class="field">
- {{if .StatsIndexerStatus}}
718
719
<a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/commit/{{.StatsIndexerStatus.CommitSha}}">
720
<span class="shortsha">{{ShortSha .StatsIndexerStatus.CommitSha}}</span>
721
</a>
0 commit comments