feat(cabana): mail layouts and partials screens with reset, drift and custom layouts

- Layouts and partials controllers with catalog scoping, reset action and File version diff
- Custom layout create/delete with in-use refusal; meta.deletable and customized/outdated row states
- List schema golden fixtures updated for the two new row-state message keys

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-13 12:33:20 +01:00
parent 7efb9ed7ad
commit 83f76cc3f7
35 changed files with 1868 additions and 18 deletions

View File

@@ -0,0 +1,11 @@
{{- /* The File version tab (mailFileVersionView): the line diff of the override against the file, then the file itself. */ -}}
{{- with .Data -}}
{{- if .CustomLayout }}<p class="text-muted">{{ trans "backend::lang.mail.info_custom_layout" }}</p>{{ end -}}
{{- if .Show -}}
{{- if .Customized -}}
{{- if .Identical }}<p>{{ trans "backend::lang.mail.file_identical" }}</p>
{{- else if .Diff }}<p><strong>{{ trans "backend::lang.mail.file_changes" }}</strong></p><p class="text-muted">{{ trans "backend::lang.mail.file_legend" }}</p><pre class="summer-diff">{{ range .Diff }}<span class="{{ .Class }}">{{ .Text }}</span>{{ end }}</pre>{{ end -}}
{{- else }}<p class="text-muted">{{ trans "backend::lang.mail.file_not_customized" }}</p>{{ end -}}
<p><strong>{{ trans "backend::lang.mail.file_content" }}</strong></p><pre class="summer-diff">{{ range .Content }}<span class="summer-diff__ctx">{{ . }}</span>{{ end }}</pre>
{{- end -}}
{{- end -}}