remove the email logo

This commit is contained in:
Roman Perekhod
2023-05-22 13:29:38 +02:00
parent 798f3d53dc
commit 53f71bea13
4 changed files with 6 additions and 23 deletions

View File

@@ -0,0 +1,6 @@
Enhancement: Remove the email logo
Remove the email logo
https://github.com/owncloud/ocis/issues/6359
https://github.com/owncloud/ocis/pull/6361

View File

@@ -55,11 +55,6 @@ func RenderEmailTemplate(mt MessageTemplate, locale string, emailTemplatePath st
if err != nil {
return nil, err
}
} else {
data, err = readImagesFs()
if err != nil {
return nil, err
}
}
return &channels.Message{
@@ -97,15 +92,6 @@ func executeTemplate(tpl *template.Template, vars any) (string, error) {
return writer.String(), nil
}
func readImagesFs() (map[string][]byte, error) {
dir := filepath.Join(imgDir)
entries, err := templatesFS.ReadDir(dir)
if err != nil {
return nil, err
}
return read(entries, templatesFS)
}
func readImages(emailTemplatePath string) (map[string][]byte, error) {
dir := filepath.Join(emailTemplatePath, imgDir)
entries, err := os.ReadDir(dir)

View File

@@ -5,15 +5,6 @@
<tr>
<td>
<table cellspacing="0" cellpadding="0" border="0" width="600px">
<tr>
<td bgcolor="#041e41" width="20px">&nbsp;</td>
<td bgcolor="#041e41">
<img src="cid:logo-mail.gif" alt="logo-mail"/>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="20px">&nbsp;</td>
<td style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB