{{ define "layouts/fragments/topbar" }} {{ template "fragments/logotypeSmall" }} {{ with .LoggedInUser }} {{ block "newButton" . }} {{ end }} {{ template "notifications/fragments/bell" }} {{ block "profileDropdown" . }} {{ end }} {{ else }} login or join now {{ i "arrow-right" "size-4" }} {{ end }} {{ end }} {{ define "newButton" }} {{ i "plus" "w-4 h-4" }} new {{ i "book-plus" "w-4 h-4" }} new repository {{ i "line-squiggle" "w-4 h-4" }} new string {{ end }} {{ define "profileDropdown" }} {{ $user := .Active.Did }} {{ $user | resolve | truncateAt30 }} {{ $active := .Active.Did }} {{ $active | resolve }} active {{ $others := .Accounts | otherAccounts $active }} {{ if $others }} Switch Account {{ range $others }} {{ .Did | resolve }} {{ end }} {{ end }} {{ i "plus" "w-4 h-4 flex-shrink-0" }} Add another account profile repositories strings settings logout {{ end }}
{{ $active | resolve }}
active
Switch Account