unee-t / frontend

Meteor front end
https://case.dev.unee-t.com/
GNU Affero General Public License v3.0
9 stars 17 forks source link

Custom branded notifications #819

Closed nbiton closed 5 years ago

nbiton commented 5 years ago

This PR includes both the changes for email notifications design in general, and the option for custom branded email notifications.

This is how an email notification looks with default branding: Screenshot from 2019-06-06 23-28-53

And this is how an email notification looks with custom hmlet branding: Screenshot from 2019-06-06 23-43-55

To enable custom branding, the user Mongo document of the unit's creator needs to include the following object:

{
  ...
  "customEmailBrandingConfig" : {
    "logoUrl" : String,
    "brandName" : String,
    "signatureHtml" : String,
    "signatureText" : String
  }
}

For example:

"customEmailBrandingConfig" : {
  "logoUrl" : "https://www.hmlet.com/static/images/logos/logo_black.png",
  "brandName" : "hmlet",
  "signatureHtml" : "<p>Cheers,<br />Your friends at hmlet",
  "signatureText" : "Cheers, your friends at hmlet"
}

Resolves #814 Resolves #815