diff options
Diffstat (limited to 'templates/org/menu.tmpl')
-rw-r--r-- | templates/org/menu.tmpl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/templates/org/menu.tmpl b/templates/org/menu.tmpl index f86570d47b..87242b94d3 100644 --- a/templates/org/menu.tmpl +++ b/templates/org/menu.tmpl @@ -1,6 +1,6 @@ <div class="ui tabs container"> <div class="ui secondary stackable pointing menu"> - <a class="{{if .PageIsViewRepositories}}active{{end}} item" href="{{$.Org.HomeLink}}"> + <a class="{{if .PageIsViewRepositories}}active {{end}}item" href="{{$.Org.HomeLink}}"> {{svg "octicon-repo"}} {{.locale.Tr "user.repositories"}} </a> {{if .IsPackageEnabled}} @@ -8,14 +8,19 @@ {{svg "octicon-package"}} {{.locale.Tr "packages.title"}} </a> {{end}} + {{if .IsRepoIndexerEnabled}} + <a class="{{if $.PageIsOrgCode}}active {{end}}item" href="{{$.Org.HomeLink}}/-/code"> + {{svg "octicon-code"}} {{$.locale.Tr "org.code"}} + </a> + {{end}} {{if .IsOrganizationMember}} - <a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members"> + <a class="{{if $.PageIsOrgMembers}}active {{end}}item" href="{{$.OrgLink}}/members"> {{svg "octicon-organization"}} {{$.locale.Tr "org.people"}} {{if .NumMembers}} <div class="ui primary label">{{.NumMembers}}</div> {{end}} </a> - <a class="{{if $.PageIsOrgTeams}}active{{end}} item" href="{{$.OrgLink}}/teams"> + <a class="{{if $.PageIsOrgTeams}}active {{end}}item" href="{{$.OrgLink}}/teams"> {{svg "octicon-people"}} {{$.locale.Tr "org.teams"}} {{if .NumTeams}} <div class="ui primary label">{{.NumTeams}}</div> @@ -25,7 +30,7 @@ {{if .IsOrganizationOwner}} <div class="right menu"> - <a class="{{if .PageIsOrgSettings}}active{{end}} item" href="{{.OrgLink}}/settings"> + <a class="{{if .PageIsOrgSettings}}active {{end}}item" href="{{.OrgLink}}/settings"> {{svg "octicon-tools"}} {{.locale.Tr "repo.settings"}} </a> </div> |