{{define "visibilityBadge" -}} {{if eq (printf "%s" .) "PUBLIC" -}} public {{- else if eq (printf "%s" .) "UNLISTED" -}} unlisted {{- else -}} private {{- end}} {{- end}} {{/* viewtabs renders the alternative-view tab bar for a repo: one tab per applicable View plus a "Tables" tab for the always-available generic browser. Invoke it with a dict context: {{template "viewtabs" (dict "Repo" .Repo "Views" .Views "Current" "" "Ref" .DefaultBranch)}} .Current is the active view's slug ("" selects the Tables tab); .Ref is the branch/ref the Tables tab links to (falls back to the overview when empty). */}} {{define "viewtabs" -}} {{$repo := .Repo}}{{$current := .Current}}{{$ref := .Ref}}
{{- end}} {{define "repoList" -}} {{if .}}No databases yet.
{{end}} {{- end}}