mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-05 11:51:16 -06:00
remove the email logo
This commit is contained in:
6
changelog/unreleased/remove-email-logo.md
Normal file
6
changelog/unreleased/remove-email-logo.md
Normal 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
|
||||
@@ -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)
|
||||
|
||||
@@ -5,15 +5,6 @@
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="600px">
|
||||
<tr>
|
||||
<td bgcolor="#041e41" width="20px"> </td>
|
||||
<td bgcolor="#041e41">
|
||||
<img src="cid:logo-mail.gif" alt="logo-mail"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20px"> </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 |
Reference in New Issue
Block a user