{{if and (not $.PageIsOrgSettingsLabels) (or $.CanWriteIssues $.CanWritePulls) (eq .NumLabels 0) (not $.Repository.IsArchived)}}
{{template "repo/issue/labels/label_load_template" .}}
{{else if and ($.PageIsOrgSettingsLabels) (eq .NumLabels 0)}}
{{template "repo/issue/labels/label_load_template" .}}
{{end}}
{{range .Labels}}
{{RenderLabel $.Context .}}
{{if .Description}}
{{.Description | RenderEmoji $.Context}}{{end}}
{{end}}
{{if and (not .PageIsOrgSettingsLabels) (.OrgLabels)}}
{{if (not $.PageIsOrgSettingsLabels)}}
{{range .OrgLabels}}
{{RenderLabel $.Context .}}
{{if .Description}}
{{.Description | RenderEmoji $.Context}}{{end}}
{{end}}
{{end}}
{{end}}