summaryrefslogtreecommitdiffstats
path: root/templates/user/overview/header.tmpl
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2022-10-11 02:12:03 +0300
committerGitHub <noreply@github.com>2022-10-11 00:12:03 +0100
commitb59b0cad0a550223f74add109ff13c0d2f4309f3 (patch)
tree4c4d0482ca8740390b5939c3979d1fef35cb9047 /templates/user/overview/header.tmpl
parent3ccebf7f4044b85eef975e4544785893da763bd2 (diff)
downloadgitea-b59b0cad0a550223f74add109ff13c0d2f4309f3.tar.gz
gitea-b59b0cad0a550223f74add109ff13c0d2f4309f3.zip
Add user/organization code search (#19977)
Fixes #19925 Screenshots: ![attels](https://user-images.githubusercontent.com/165205/173864718-fe789429-55bc-4cad-808c-9f02f335cddf.png)
Diffstat (limited to 'templates/user/overview/header.tmpl')
-rw-r--r--templates/user/overview/header.tmpl7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/user/overview/header.tmpl b/templates/user/overview/header.tmpl
index b61883b0c1..f007973607 100644
--- a/templates/user/overview/header.tmpl
+++ b/templates/user/overview/header.tmpl
@@ -23,10 +23,15 @@
{{svg "octicon-repo"}} {{.locale.Tr "user.repositories"}}
</a>
{{if (not .UnitPackagesGlobalDisabled)}}
- <a href="{{.ContextUser.HTMLURL}}/-/packages" class="{{if .IsPackagesPage}}active{{end}} item">
+ <a href="{{.ContextUser.HomeLink}}/-/packages" class="{{if .IsPackagesPage}}active {{end}}item">
{{svg "octicon-package"}} {{.locale.Tr "packages.title"}}
</a>
{{end}}
+ {{if .IsRepoIndexerEnabled}}
+ <a href="{{.ContextUser.HomeLink}}/-/code" class="{{if .IsCodePage}}active {{end}}item">
+ {{svg "octicon-code"}} {{.locale.Tr "user.code"}}
+ </a>
+ {{end}}
{{if .ContextUser.IsOrganization}}
{{if .IsOrganizationMember}}