-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(notification): new mail templates (#1579)
* fix: new template light only * add border radius to img * system first font, font weight * fix: change email template * fix: go mod * update ref * fix: template Co-authored-by: fabi <fabienne.gerschwiler@gmail.com>
- Loading branch information
1 parent
a3abdec
commit 057537c
Showing
12 changed files
with
345 additions
and
670 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package command | ||
|
||
import ( | ||
"context" | ||
"github.com/caos/logging" | ||
"github.com/caos/zitadel/internal/domain" | ||
"github.com/caos/zitadel/internal/eventstore" | ||
) | ||
|
||
type Step13 struct { | ||
DefaultMailTemplate domain.MailTemplate | ||
} | ||
|
||
func (s *Step13) Step() domain.Step { | ||
return domain.Step13 | ||
} | ||
|
||
func (s *Step13) execute(ctx context.Context, commandSide *Commands) error { | ||
return commandSide.SetupStep13(ctx, s) | ||
} | ||
|
||
func (c *Commands) SetupStep13(ctx context.Context, step *Step13) error { | ||
fn := func(iam *IAMWriteModel) ([]eventstore.EventPusher, error) { | ||
_, mailTemplateEvent, err := c.changeDefaultMailTemplate(ctx, &step.DefaultMailTemplate) | ||
if err != nil { | ||
return nil, err | ||
} | ||
logging.Log("SETUP-4insR").Info("default mail template/text set up") | ||
return []eventstore.EventPusher{mailTemplateEvent}, nil | ||
} | ||
return c.setup(ctx, step, fn) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 0 additions & 50 deletions
50
internal/notification/static/templates/template 01 Tabelle black.mjml
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
internal/notification/static/templates/template 01 Tabelle.mjml
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
internal/notification/static/templates/template 02 Absolut.mjml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.