{{if and .IsSigned .MustChangePassword}} {{/* No links */}} {{else if .IsSigned}} {{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 .IsLandingPageOrganizations}} {{.i18n.Tr "explore"}} {{else}} {{.i18n.Tr "explore"}} {{end}} {{template "custom/extra_links" .}} {{/* TODO
{{svg "octicon-search" 16}}
*/}} {{if and .IsSigned .MustChangePassword}}
{{avatar .SignedUser 24 "tiny"}} {{.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}}
{{$issueURL := Printf "%s/%s/issues/%d" AppSubUrl .ActiveStopwatch.RepoSlug .ActiveStopwatch.IssueIndex}} {{svg "octicon-stopwatch"}} {{svg "octicon-dot-fill"}} {{.i18n.Tr "active_stopwatch"}}
{{svg "octicon-issue-opened"}} {{.ActiveStopwatch.RepoSlug}}#{{.ActiveStopwatch.IssueIndex}} {{if .ActiveStopwatch}}{{Sec2Time .ActiveStopwatch.Seconds}}{{end}}
{{.CsrfTokenHtml}}
{{.CsrfTokenHtml}}
{{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"}} {{if not .DisableMigrations}} {{svg "octicon-repo-push"}} {{.i18n.Tr "new_migrate"}} {{end}} {{if .SignedUser.CanCreateOrganization}} {{svg "octicon-organization"}} {{.i18n.Tr "new_org"}} {{end}}
{{avatar .SignedUser 24 "tiny"}} {{.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"}} {{if not .DisableStars}} {{svg "octicon-star"}} {{.i18n.Tr "your_starred"}} {{end}} {{svg "octicon-tools"}} {{.i18n.Tr "your_settings"}} {{svg "octicon-question"}} {{.i18n.Tr "help"}} {{if .IsAdmin}}
{{svg "octicon-server"}} {{.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}}