{{if and .IsSigned .MustChangePassword}} {{/* No links */}} {{else if .IsSigned}} {{.i18n.Tr "dashboard"}} {{if not .UnitIssuesGlobalDisabled}} {{.i18n.Tr "issues"}} {{end}} {{if not .UnitPullsGlobalDisabled}} {{.i18n.Tr "pull_requests"}} {{end}} {{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}} {{if .ShowMilestonesDashboardPage}}{{.i18n.Tr "milestones"}}{{end}} {{end}} {{.i18n.Tr "explore"}} {{else if .IsLandingPageHome}} {{.i18n.Tr "home"}} {{.i18n.Tr "explore"}} {{else if .IsLandingPageExplore}} {{.i18n.Tr "home"}} {{else if .IsLandingPageOrganizations}} {{.i18n.Tr "home"}} {{end}} {{template "custom/extra_links" .}} {{/*
*/}} {{if and .IsSigned .MustChangePassword}}
{{.i18n.Tr "user_profile_and_more"}} {{.SignedUser.Name}} {{svg "octicon-triangle-down"}}
{{.i18n.Tr "signed_in_as"}} {{.SignedUser.Name}}
{{svg "octicon-sign-out"}} {{.i18n.Tr "sign_out"}}
{{else if .IsSigned}}
{{svg "octicon-bell"}} {{.i18n.Tr "notifications"}} {{$notificationUnreadCount := 0}} {{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}} {{$notificationUnreadCount}}
{{svg "octicon-plus"}} {{.i18n.Tr "create_new"}} {{svg "octicon-triangle-down"}}
{{svg "octicon-plus"}} {{.i18n.Tr "new_repo"}} {{svg "octicon-repo-push"}} {{.i18n.Tr "new_migrate"}} {{if .SignedUser.CanCreateOrganization}} {{svg "octicon-organization"}} {{.i18n.Tr "new_org"}} {{end}}
{{.i18n.Tr "user_profile_and_more"}} {{.SignedUser.Name}} {{svg "octicon-triangle-down"}}
{{.i18n.Tr "signed_in_as"}} {{.SignedUser.Name}}
{{svg "octicon-person"}} {{.i18n.Tr "your_profile"}} {{svg "octicon-star"}} {{.i18n.Tr "your_starred"}} {{svg "octicon-tools"}} {{.i18n.Tr "your_settings"}} {{svg "octicon-question"}} {{.i18n.Tr "help"}} {{if .IsAdmin}}
{{.i18n.Tr "admin_panel"}} {{end}}
{{svg "octicon-sign-out"}} {{.i18n.Tr "sign_out"}}
{{else}} {{.i18n.Tr "help"}}
{{if .ShowRegistrationButton}} {{svg "octicon-person"}} {{.i18n.Tr "register"}} {{end}} {{svg "octicon-sign-in"}} {{.i18n.Tr "sign_in"}}
{{end}}