{{define "content" -}}

~{{.Repo.OwnerName}}/{{.Repo.Name}} · tree

{{template "viewtabs" (dict "Repo" .Repo "Views" .Views "Current" "tables" "Ref" .Ref)}}

Tables at {{.Ref}}

{{if .Tables}} {{range .Tables}}

{{icon "folder"}} {{.Name}} {{.RowCount}} rows rows

{{range .Columns}} {{end}}
ColumnTypeKeyNull
{{.Name}} {{.Type}} {{if .PrimaryKey}}PK{{end}} {{if .Nullable}}yes{{else}}no{{end}}
{{end}} {{else}}

No tables at this ref.

{{end}} {{- end}}