summaryrefslogtreecommitdiffstats
path: root/templates/explore
diff options
context:
space:
mode:
Diffstat (limited to 'templates/explore')
-rw-r--r--templates/explore/navbar.tmpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/explore/navbar.tmpl b/templates/explore/navbar.tmpl
index 93810dcf4a..5b1e6b5d06 100644
--- a/templates/explore/navbar.tmpl
+++ b/templates/explore/navbar.tmpl
@@ -2,9 +2,11 @@
<a class="{{if .PageIsExploreRepositories}}active{{end}} item" href="{{AppSubUrl}}/explore/repos">
{{svg "octicon-repo"}} {{.i18n.Tr "explore.repos"}}
</a>
- <a class="{{if .PageIsExploreUsers}}active{{end}} item" href="{{AppSubUrl}}/explore/users">
- {{svg "octicon-person"}} {{.i18n.Tr "explore.users"}}
- </a>
+ {{if not .UsersIsDisabled}}
+ <a class="{{if .PageIsExploreUsers}}active{{end}} item" href="{{AppSubUrl}}/explore/users">
+ {{svg "octicon-person"}} {{.i18n.Tr "explore.users"}}
+ </a>
+ {{end}}
<a class="{{if .PageIsExploreOrganizations}}active{{end}} item" href="{{AppSubUrl}}/explore/organizations">
{{svg "octicon-organization"}} {{.i18n.Tr "explore.organizations"}}
</a>