{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.title"}}
{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.add"}}

{{range .CleanupRules}}
{{svg .Type.SVGName 32}}

{{if .Enabled}}{{ctx.Locale.Tr "enabled"}}{{else}}{{ctx.Locale.Tr "disabled"}}{{end}}

{{if .KeepCount}}

{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count"}}:

{{if eq .KeepCount 1}}{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count.1"}}{{else}}{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count.n" .KeepCount}}{{end}}
{{end}} {{if .KeepPattern}}

{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.pattern"}}:

{{StringUtils.EllipsisString .KeepPattern 100}}
{{end}} {{if .RemoveDays}}

{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.remove.days"}}:

{{ctx.Locale.Tr "tool.days" .RemoveDays}}
{{end}} {{if .RemovePattern}}

{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.remove.pattern"}}:

{{StringUtils.EllipsisString .RemovePattern 100}}
{{end}}
{{else}}
{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.none"}}
{{end}}