diff --git a/MANIFEST.in b/MANIFEST.in index 4d6a5d5..d8d2a4c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ include LICENSE include README.md recursive-include django_aws_ses/templates *.html -recursive-include django_aws_ses/static *.css *.js \ No newline at end of file +recursive-include django_aws_ses/static *.css *.js *.ico \ No newline at end of file diff --git a/django_aws_ses/static/django_aws_ses/css/base.css b/django_aws_ses/static/django_aws_ses/css/base.css index e69de29..84350a0 100644 --- a/django_aws_ses/static/django_aws_ses/css/base.css +++ b/django_aws_ses/static/django_aws_ses/css/base.css @@ -0,0 +1,20 @@ +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; + color: #333; + background-color: #fff; + line-height: 1.6; +} + +#body_container.cardContent { + max-width: 1200px; + margin: 20px auto; + padding: 0 20px; + box-sizing: border-box; +} + +@media (max-width: 768px) { + #body_container.cardContent { + padding: 0 10px; + } +} \ No newline at end of file diff --git a/django_aws_ses/templates/django_aws_ses/base.html b/django_aws_ses/templates/django_aws_ses/base.html index 30a1d01..2701976 100644 --- a/django_aws_ses/templates/django_aws_ses/base.html +++ b/django_aws_ses/templates/django_aws_ses/base.html @@ -1,14 +1,19 @@ {% load static %} - - - {% block title1 %}N/A {% endblock title1 %} | {% block title2 %} {{ site.domain }}{% endblock title2 %} + + + + + {% block title1 %}N/A{% endblock title1 %} | {% block title2 %}{{ site.domain|escape }}{% endblock title2 %} + + + {% block extrahead %}{% endblock extrahead %} -
- {% block content %} - if you see this, something is wrong! - {% endblock content %} -
- - \ No newline at end of file +
+ {% block content %} + If you see this, something is wrong! + {% endblock content %} +
+ + diff --git a/django_aws_ses/templates/django_aws_ses/send_stats.html b/django_aws_ses/templates/django_aws_ses/send_stats.html index bba430f..273a95d 100644 --- a/django_aws_ses/templates/django_aws_ses/send_stats.html +++ b/django_aws_ses/templates/django_aws_ses/send_stats.html @@ -1,41 +1,59 @@ {% extends "admin/base_site.html" %} +{% load static %} {% block extrastyle %} - {{ block.super }} - + {{ block.super }} + {% endblock %} {% block extrahead %} - - + {% endblock %} @@ -43,25 +61,24 @@ {% block content_title %}

SES Stats

{% endblock %} {% block content %} -

Access Key: {{ access_key }}

- - + + - - - - + + + +
Quotas
24 Quota24 Sent24h Quota24h Sent Quota Remaining Per/s Quota
{{ 24hour_quota }}{{ 24hour_sent }}{{ 24hour_remaining }}{{ persecond_rate }}{{ 24hour_quota|floatformat:0 }}{{ 24hour_sent|floatformat:0 }}{{ 24hour_remaining|floatformat:0 }}{{ persecond_rate|floatformat:2 }}
@@ -80,44 +97,44 @@ - {{ summary.DeliveryAttempts }} - {{ summary.Bounces }} - {{ summary.Complaints }} - {{ summary.Rejects }} + {{ summary.DeliveryAttempts|default:0 }} + {{ summary.Bounces|default:0 }} + {{ summary.Complaints|default:0 }} + {{ summary.Rejects|default:0 }} -
+
+
- - - - - - - + + + + + + + - {% for datapoint in datapoints %} - - - - - - - - {% endfor %} + {% for datapoint in datapoints %} + + + + + + + + {% endfor %}
Sending Activity
Delivery AttemptsBouncesComplaintsRejected{% if local_time %}Local Time{% else %}Timestamp{% endif %}
Delivery AttemptsBouncesComplaintsRejected{% if local_time %}Local Time{% else %}Timestamp{% endif %}
{{ datapoint.DeliveryAttempts }}{{ datapoint.Bounces }}{{ datapoint.Complaints }}{{ datapoint.Rejects }}{{ datapoint.Timestamp }}
{{ datapoint.DeliveryAttempts|default:0 }}{{ datapoint.Bounces|default:0 }}{{ datapoint.Complaints|default:0 }}{{ datapoint.Rejects|default:0 }}{{ datapoint.Timestamp|escape }}
{% endblock %} - {% block sidebar %} -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/django_aws_ses/templates/django_aws_ses/unsebscribe.html b/django_aws_ses/templates/django_aws_ses/unsebscribe.html deleted file mode 100644 index d3efa32..0000000 --- a/django_aws_ses/templates/django_aws_ses/unsebscribe.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends base_template_name %} - -{% block title1 %} -Unsubscribe -{% endblock title1 %} - -{% block content %} -
-

{{ unsubscribe_message }}

-
-{% endblock content %} \ No newline at end of file diff --git a/django_aws_ses/templates/django_aws_ses/unsubscribe.html b/django_aws_ses/templates/django_aws_ses/unsubscribe.html index d3efa32..2700128 100644 --- a/django_aws_ses/templates/django_aws_ses/unsubscribe.html +++ b/django_aws_ses/templates/django_aws_ses/unsubscribe.html @@ -1,11 +1,17 @@ -{% extends base_template_name %} +{% extends 'django_aws_ses/base.html' %} +{% load static %} -{% block title1 %} -Unsubscribe -{% endblock title1 %} +{% block extrahead %} + +{% endblock %} -{% block content %} -
-

{{ unsubscribe_message }}

+{% block title1 %}Unsubscribe{% endblock title1 %} + +{% block content %} +
+

{{ unsubscribe_message|escape }}

+

You have been successfully unsubscribed from our email list.

+

Changed your mind? Re-subscribe

+

Return to home.

{% endblock content %} \ No newline at end of file