2022-11-20 19:38:38 +05:30
|
|
|
<h4 class="ui top attached header">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.title"}}
|
2022-11-20 19:38:38 +05:30
|
|
|
<div class="ui right">
|
2023-09-25 14:26:50 +05:30
|
|
|
<a class="ui primary tiny button" href="{{.Link}}/rules/add">{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.add"}}</a>
|
2022-11-20 19:38:38 +05:30
|
|
|
</div>
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
2023-08-01 03:43:42 +05:30
|
|
|
<div class="flex-list">
|
2022-11-20 19:38:38 +05:30
|
|
|
{{range .CleanupRules}}
|
2023-08-01 03:43:42 +05:30
|
|
|
<div class="flex-item">
|
|
|
|
<div class="flex-item-leading">
|
|
|
|
{{svg .Type.SVGName 32}}
|
|
|
|
</div>
|
|
|
|
<div class="flex-item-main">
|
|
|
|
<div class="flex-item-title">
|
|
|
|
<a class="item" href="{{$.Link}}/rules/{{.ID}}">{{.Type.Name}}</a>
|
|
|
|
</div>
|
|
|
|
<div class="flex-item-body">
|
2024-04-29 19:56:26 +05:30
|
|
|
<p>{{if .Enabled}}{{ctx.Locale.Tr "enabled"}}{{else}}{{ctx.Locale.Tr "disabled"}}{{end}}</p>
|
2023-08-01 03:43:42 +05:30
|
|
|
</div>
|
|
|
|
{{if .KeepCount}}
|
|
|
|
<div class="flex-item-body">
|
2024-04-29 19:56:26 +05:30
|
|
|
<p>{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.count"}}:</p> {{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}}
|
2023-08-01 03:43:42 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if .KeepPattern}}
|
|
|
|
<div class="flex-item-body">
|
2024-04-29 19:56:26 +05:30
|
|
|
<p>{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.keep.pattern"}}:</p> {{StringUtils.EllipsisString .KeepPattern 100}}
|
2023-08-01 03:43:42 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if .RemoveDays}}
|
|
|
|
<div class="flex-item-body">
|
2024-04-29 19:56:26 +05:30
|
|
|
<p>{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.remove.days"}}:</p> {{ctx.Locale.Tr "tool.days" .RemoveDays}}
|
2023-08-01 03:43:42 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if .RemovePattern}}
|
|
|
|
<div class="flex-item-body">
|
2024-04-29 19:56:26 +05:30
|
|
|
<p>{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.remove.pattern"}}:</p> {{StringUtils.EllipsisString .RemovePattern 100}}
|
2023-08-01 03:43:42 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div class="flex-item-trailing">
|
2023-06-21 04:52:48 +05:30
|
|
|
<div class="ui dropdown tiny basic button">
|
2022-11-20 19:38:38 +05:30
|
|
|
{{svg "octicon-kebab-horizontal"}}
|
|
|
|
<div class="menu">
|
2023-09-25 14:26:50 +05:30
|
|
|
<a class="item" href="{{$.Link}}/rules/{{.ID}}">{{ctx.Locale.Tr "edit"}}</a>
|
|
|
|
<a class="item" href="{{$.Link}}/rules/{{.ID}}/preview">{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.preview"}}</a>
|
2022-11-20 19:38:38 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<div class="item">{{ctx.Locale.Tr "packages.owner.settings.cleanuprules.none"}}</div>
|
2022-11-20 19:38:38 +05:30
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|