diff --git a/mailer/templates/mailer/dashboard.html b/mailer/templates/mailer/dashboard.html index d72d9c1..a319696 100644 --- a/mailer/templates/mailer/dashboard.html +++ b/mailer/templates/mailer/dashboard.html @@ -27,7 +27,7 @@
diff --git a/mailer/templates/mailer/logs.html b/mailer/templates/mailer/logs.html new file mode 100644 index 0000000..35ea55f --- /dev/null +++ b/mailer/templates/mailer/logs.html @@ -0,0 +1,53 @@ +{% extends "mailer/base.html" %} + +{% block content %} +| Sent At | +Recipient | +Subject | +Template | +Status | +Error | +
|---|---|---|---|---|---|
| {{ log.sent_at|date:"Y-m-d H:i:s" }} | +{{ log.recipient }} | +{{ log.subject }} | +{{ log.template_name }} | ++ {% if log.status == 'success' %} + Success + {% else %} + Failed + {% endif %} + | +{{ log.error_message|default:"-" }} | +
| No email logs found. | +|||||