{{ctx.Locale.Tr
{{template "base/head_navbar_icons" dict "PageGlobalData" .PageGlobalData}}
{{if and .IsSigned .MustChangePassword}} {{/* No links */}} {{else if .IsSigned}} {{if not ctx.Consts.RepoUnitTypeIssues.UnitGlobalDisabled}} {{ctx.Locale.Tr "issues"}} {{end}} {{if not ctx.Consts.RepoUnitTypePullRequests.UnitGlobalDisabled}} {{ctx.Locale.Tr "pull_requests"}} {{end}} {{if not (and ctx.Consts.RepoUnitTypeIssues.UnitGlobalDisabled ctx.Consts.RepoUnitTypePullRequests.UnitGlobalDisabled)}} {{if .ShowMilestonesDashboardPage}} {{ctx.Locale.Tr "milestones"}} {{end}} {{end}} {{ctx.Locale.Tr "explore"}} {{else if .IsLandingPageOrganizations}} {{ctx.Locale.Tr "explore"}} {{else}} {{ctx.Locale.Tr "explore"}} {{end}} {{template "custom/extra_links" .}} {{if not .IsSigned}} {{ctx.Locale.Tr "help"}} {{end}}
{{if and .IsSigned .MustChangePassword}}
{{ctx.AvatarUtils.Avatar .SignedUser 24 "tw-mr-1"}} {{.SignedUser.Name}} {{svg "octicon-triangle-down"}}
{{ctx.Locale.Tr "signed_in_as"}} {{.SignedUser.Name}}
{{svg "octicon-sign-out"}} {{ctx.Locale.Tr "sign_out"}}
{{else if .IsSigned}} {{template "base/head_navbar_icons" dict "ItemExtraClass" "not-mobile" "PageGlobalData" .PageGlobalData}}
{{svg "octicon-plus"}} {{svg "octicon-triangle-down"}} {{ctx.Locale.Tr "create_new"}}
{{svg "octicon-plus"}} {{ctx.Locale.Tr "new_repo"}} {{if not .DisableMigrations}} {{svg "octicon-repo-push"}} {{ctx.Locale.Tr "new_migrate"}} {{end}} {{if .SignedUser.CanCreateOrganization}} {{svg "octicon-organization"}} {{ctx.Locale.Tr "new_org"}} {{end}}
{{ctx.AvatarUtils.Avatar .SignedUser 24 "tw-mr-1"}} {{.SignedUser.Name}} {{svg "octicon-triangle-down"}}
{{ctx.Locale.Tr "signed_in_as"}} {{.SignedUser.Name}}
{{svg "octicon-person"}} {{ctx.Locale.Tr "your_profile"}} {{if not .DisableStars}} {{svg "octicon-star"}} {{ctx.Locale.Tr "your_starred"}} {{end}} {{svg "octicon-bell"}} {{ctx.Locale.Tr "notification.subscriptions"}} {{svg "octicon-tools"}} {{ctx.Locale.Tr "your_settings"}} {{svg "octicon-question"}} {{ctx.Locale.Tr "help"}}
{{svg "octicon-sign-out"}} {{ctx.Locale.Tr "sign_out"}}
{{else}} {{if .ShowRegistrationButton}} {{svg "octicon-person"}} {{ctx.Locale.Tr "register"}} {{end}} {{svg "octicon-sign-in"}} {{ctx.Locale.Tr "sign_in"}} {{end}}
{{$activeStopwatch := and .PageGlobalData (call .PageGlobalData.GetActiveStopwatch)}} {{if $activeStopwatch}}
{{svg "octicon-issue-opened" 16}} {{$activeStopwatch.RepoSlug}}#{{$activeStopwatch.IssueIndex}}
{{.CsrfTokenHtml}}
{{.CsrfTokenHtml}}
{{end}}