feat(postcard): finished default layout with logo header, footer and site name
- default.htm ports WinterCMS's default layout: wrapper, header row with the Branding logo (or the site name), the inner-body card and a copyright footer; its text wrapper ends with the footer - built-in header and footer partials (logo/body/url, body) - layouts get siteName (Branding site name, else the display name of mail.from) and year; Brand.SiteName and migration 202611130002_mail_brand_site_name - cabana Branding form gets site_name (trimmed, max 255), mapped into the Branding preview draft; en/pl copy; img.logo brand CSS - 35-06 Task 1 (G-35-8)
This commit is contained in:
@@ -406,7 +406,7 @@ func TestMailEditorSmoke(t *testing.T) {
|
||||
}
|
||||
|
||||
templates, layouts, partials := lf.Templates(), lf.Layouts(), lf.Partials()
|
||||
if len(templates) != 2 || len(layouts) != 4 || len(partials) != 5 {
|
||||
if len(templates) != 2 || len(layouts) != 4 || len(partials) != 7 {
|
||||
t.Fatalf("catalog holds %d templates, %d layouts, %d partials", len(templates), len(layouts), len(partials))
|
||||
}
|
||||
if templates[0].Name != editorWelcome || templates[1].Name != "acme.blog::mail.welcome-en" || layouts[0].Name != editorBlogLayout || partials[0].Name != editorNote {
|
||||
@@ -541,7 +541,7 @@ func TestMailEditorSmoke(t *testing.T) {
|
||||
return out
|
||||
}
|
||||
templates, layouts, partials := rows(TemplatesTable), rows(LayoutsTable), rows(PartialsTable)
|
||||
if len(templates) != 2 || len(layouts) != 4 || len(partials) != 5 {
|
||||
if len(templates) != 2 || len(layouts) != 4 || len(partials) != 7 {
|
||||
t.Fatalf("index holds %d templates, %d layouts, %d partials", len(templates), len(layouts), len(partials))
|
||||
}
|
||||
file, _ := cat.Template(editorWelcome)
|
||||
|
||||
Reference in New Issue
Block a user