diff options
Diffstat (limited to 'templates/org/menu.tmpl')
-rw-r--r-- | templates/org/menu.tmpl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/org/menu.tmpl b/templates/org/menu.tmpl index 26c9f980a5..c3ec142e9c 100644 --- a/templates/org/menu.tmpl +++ b/templates/org/menu.tmpl @@ -1,35 +1,35 @@ <div class="ui container"> <div class="ui secondary stackable pointing menu"> <a class="{{if .PageIsViewRepositories}}active {{end}}item" href="{{$.Org.HomeLink}}"> - {{svg "octicon-repo"}} {{.locale.Tr "user.repositories"}} + {{svg "octicon-repo"}} {{ctx.Locale.Tr "user.repositories"}} {{if .RepoCount}} <div class="ui small label">{{.RepoCount}}</div> {{end}} </a> {{if .CanReadProjects}} <a class="{{if .PageIsViewProjects}}active {{end}}item" href="{{$.Org.HomeLink}}/-/projects"> - {{svg "octicon-project-symlink"}} {{.locale.Tr "user.projects"}} + {{svg "octicon-project-symlink"}} {{ctx.Locale.Tr "user.projects"}} </a> {{end}} {{if and .IsPackageEnabled .CanReadPackages}} <a class="item" href="{{$.Org.HomeLink}}/-/packages"> - {{svg "octicon-package"}} {{.locale.Tr "packages.title"}} + {{svg "octicon-package"}} {{ctx.Locale.Tr "packages.title"}} </a> {{end}} {{if and .IsRepoIndexerEnabled .CanReadCode}} <a class="item" href="{{$.Org.HomeLink}}/-/code"> - {{svg "octicon-code"}} {{$.locale.Tr "org.code"}} + {{svg "octicon-code"}} {{ctx.Locale.Tr "org.code"}} </a> {{end}} {{if .NumMembers}} <a class="{{if $.PageIsOrgMembers}}active {{end}}item" href="{{$.OrgLink}}/members"> - {{svg "octicon-person"}} {{$.locale.Tr "org.members"}} + {{svg "octicon-person"}} {{ctx.Locale.Tr "org.members"}} <div class="ui small label">{{.NumMembers}}</div> </a> {{end}} {{if .IsOrganizationMember}} <a class="{{if $.PageIsOrgTeams}}active {{end}}item" href="{{$.OrgLink}}/teams"> - {{svg "octicon-people"}} {{$.locale.Tr "org.teams"}} + {{svg "octicon-people"}} {{ctx.Locale.Tr "org.teams"}} {{if .NumTeams}} <div class="ui small label">{{.NumTeams}}</div> {{end}} @@ -39,7 +39,7 @@ {{if .IsOrganizationOwner}} <div class="right menu"> <a class="{{if .PageIsOrgSettings}}active {{end}}item" href="{{.OrgLink}}/settings"> - {{svg "octicon-tools"}} {{.locale.Tr "repo.settings"}} + {{svg "octicon-tools"}} {{ctx.Locale.Tr "repo.settings"}} </a> </div> {{end}} |