Files
summercms/modules/cabana/backendscreens/controllers/maillayouts/_file_version.htm
Jakub Zych 83f76cc3f7 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>
2026-11-13 12:33:20 +01:00

12 lines
944 B
HTML

{{- /* 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 -}}