{{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" 16}}
{{.i18n.Tr "signed_in_as"}} {{.SignedUser.Name}}
{{svg "octicon-sign-out" 16}} {{.i18n.Tr "sign_out"}}
{{else if .IsSigned}}
{{svg "octicon-bell" 16}} {{.i18n.Tr "notifications"}} {{$notificationUnreadCount := 0}} {{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}} {{$notificationUnreadCount}}
{{svg "octicon-plus" 16}} {{.i18n.Tr "create_new"}} {{svg "octicon-triangle-down" 16}}
{{svg "octicon-plus" 16}} {{.i18n.Tr "new_repo"}} {{svg "octicon-repo-clone" 16}} {{.i18n.Tr "new_migrate"}} {{if .SignedUser.CanCreateOrganization}} {{svg "octicon-organization" 16}} {{.i18n.Tr "new_org"}} {{end}}
{{.i18n.Tr "user_profile_and_more"}} {{.SignedUser.Name}} {{svg "octicon-triangle-down" 16}}
{{.i18n.Tr "signed_in_as"}} {{.SignedUser.Name}}
{{svg "octicon-person" 16}} {{.i18n.Tr "your_profile"}} {{svg "octicon-star" 16}} {{.i18n.Tr "your_starred"}} {{svg "octicon-settings" 16}} {{.i18n.Tr "your_settings"}} {{svg "octicon-question" 16}} {{.i18n.Tr "help"}} {{if .IsAdmin}}
{{.i18n.Tr "admin_panel"}} {{end}}
{{svg "octicon-sign-out" 16}} {{.i18n.Tr "sign_out"}}
{{else}} {{.i18n.Tr "help"}}
{{if .ShowRegistrationButton}} {{svg "octicon-person" 16}} {{.i18n.Tr "register"}} {{end}} {{svg "octicon-sign-in" 16}} {{.i18n.Tr "sign_in"}}
{{end}}