Opened 15 years ago
Closed 15 years ago
#13294 closed (invalid)
Worked in full.html into Notifications application
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | Version: | 1.1 |
Severity: | Keywords: | notification html | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Django notifications 0.1.4 has the basic plumbing to send HTML emails with the full.html template that can be over-ridden, but it isn't being used at the moment and doesn't appear to be in 0.1.5 either.
Although the html_mailer app is in alpha (http://recurser.com/code/p/django-html-mailer/), it works like a dream and allows the sending of plain-text and HTML emails. I've basically amended the notification send_now method to include an HTML version if the app is installed. Otherwise, just send the notification as normal.
I've attached my amended models.py file. It does also require the presence of an email_body.html file that is used for rendering the notice's full.html, so I've included a basic HTML version of email_body.txt. It'd be great to see this in and I think this completes the functionality hinted at with full.html.
Attachments (2)
Change History (4)
by , 15 years ago
Attachment: | empty_body.html added |
---|
by , 15 years ago
Amended models.py that uses HTML Mailer application if it is installed
comment:1 by , 15 years ago
Has patch: | unset |
---|
comment:2 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
This is the tracker for Django, not Django notifications or any other third party app.
base template used for all notifications that use the full.html template