{{.i18n.Tr "repo.issues.label_count" .NumLabels}}

{{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}}
  • {{end}} {{if and (not .PageIsOrgSettingsLabels) (.OrgLabels) }}
  • {{$.i18n.Tr "repo.org_labels_desc" | Str2html}} {{if .IsOrganizationOwner}} ({{$.i18n.Tr "repo.org_labels_desc_manage"}}): {{end}}
  • {{if (not $.PageIsOrgSettingsLabels)}}
    {{range .OrgLabels}}
  • {{svg "octicon-tag" 16}} {{.Name | RenderEmojiPlain}}
    {{.Description}}
  • {{end}}
    {{end}} {{end}}