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 952882f commit 9ac6bb0Copy full SHA for 9ac6bb0
templates/repo/settings/options.tmpl
@@ -680,9 +680,11 @@
680
{{end}}
681
<h4 class="ui header">{{.locale.Tr "repo.settings.admin_stats_indexer"}}</h4>
682
<div class="inline fields">
683
- <label>{{.locale.Tr "repo.settings.admin_indexer_commit_sha"}}</label>
+ {{if and .StatsIndexerStatus .StatsIndexerStatus.CommitSha}}
684
+ <label>{{.locale.Tr "repo.settings.admin_indexer_commit_sha"}}</label>
685
+ {{end}}
686
<span class="field">
- {{if .StatsIndexerStatus}}
687
688
<a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/commit/{{.StatsIndexerStatus.CommitSha}}">
689
<span class="shortsha">{{ShortSha .StatsIndexerStatus.CommitSha}}</span>
690
</a>
0 commit comments