forked from django-ses/django-ses
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'sbook/feature/admin_styled_ses_stats'
- Loading branch information
Showing
3 changed files
with
111 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,111 @@ | ||
{% extends "base.html" %} | ||
{% extends "admin/base_site.html" %} | ||
|
||
{% block extrastyle %} | ||
{{ block.super }} | ||
<style>table {width: 100%;}</style> | ||
{% endblock %} | ||
|
||
{% block bodyclass %}dashboard{% endblock %} | ||
{% block content_title %}<h1>SES Stats</h1>{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<p>Access Key: <span id="aws_access_key_id">{{ access_key }}</span></p> | ||
<table id="quota"> | ||
<thead> | ||
<caption>Quotas</caption> | ||
<tr> | ||
<th>24 Quota</th> | ||
<th>24 Sent</th> | ||
<th>Quota Remaining</th> | ||
<th>Per/s Quota</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{{ 24hour_quota }}<td> | ||
<td>{{ 24hour_sent }}</td> | ||
<td>{{ 24hour_remaining }}</td> | ||
<td>{{ persecond_rate }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table id="sending_totals"> | ||
<thead> | ||
<caption>Sending Totals</caption> | ||
<tr> | ||
<th>Delivery Attempts</th> | ||
<th>Bounces</th> | ||
<th>Complaints</th> | ||
<th>Rejected</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{{ summary.DeliveryAttempts }}<td> | ||
<td>{{ summary.Bounces }}</td> | ||
<td>{{ summary.Complaints }}</td> | ||
<td>{{ summary.Rejects }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table id="verified_emails"> | ||
<thead> | ||
<caption>Verified Emails</caption> | ||
<tr> | ||
<th>Email Address</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for email_address in verified_emails %} | ||
<tr> | ||
<td>{{ email_address }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
<tfoot> | ||
<tr><td><strong>{{ verified_emails|length }}</strong></td></tr> | ||
</tfoot> | ||
</table> | ||
<table id="sending_stats"> | ||
<tr> | ||
<th>Delivery Attempts</th> | ||
<th>Bounces</th> | ||
<th>Complaints</th> | ||
<th>Rejected</th> | ||
<th>Timestamp</th> | ||
</tr> | ||
{% for datapoint in datapoints %} | ||
<tr> | ||
<td>{{ datapoint.DeliveryAttempts }}</td> | ||
<td>{{ datapoint.Bounces }}</td> | ||
<td>{{ datapoint.Complaints }}</td> | ||
<td>{{ datapoint.Rejects }}</td> | ||
<td>{{ datapoint.Timestamp }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
<div id="content-main"> | ||
<div class="module"> | ||
<table id="quota"> | ||
<caption>Quotas</caption> | ||
<thead> | ||
<tr> | ||
<th>24 Quota</th> | ||
<th>24 Sent</th> | ||
<th>Quota Remaining</th> | ||
<th>Per/s Quota</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{{ 24hour_quota }}</td> | ||
<td>{{ 24hour_sent }}</td> | ||
<td>{{ 24hour_remaining }}</td> | ||
<td>{{ persecond_rate }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<div class="module"> | ||
<table id="sending_totals"> | ||
<caption>Sending Totals</caption> | ||
<thead> | ||
<tr> | ||
<th>Delivery Attempts</th> | ||
<th>Bounces</th> | ||
<th>Complaints</th> | ||
<th>Rejected</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>{{ summary.DeliveryAttempts }}</td> | ||
<td>{{ summary.Bounces }}</td> | ||
<td>{{ summary.Complaints }}</td> | ||
<td>{{ summary.Rejects }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<div class="module"> | ||
<table id="sending_stats"> | ||
<caption>Verified Emails</caption> | ||
<thead> | ||
<tr> | ||
<th>Delivery Attempts</th> | ||
<th>Bounces</th> | ||
<th>Complaints</th> | ||
<th>Rejected</th> | ||
<th>Timestamp</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for datapoint in datapoints %} | ||
<tr> | ||
<td>{{ datapoint.DeliveryAttempts }}</td> | ||
<td>{{ datapoint.Bounces }}</td> | ||
<td>{{ datapoint.Complaints }}</td> | ||
<td>{{ datapoint.Rejects }}</td> | ||
<td>{{ datapoint.Timestamp }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
|
||
{% block sidebar %} | ||
<div id="content-related"> | ||
<div class="module" id="recent-actions-module"> | ||
<h2>Verified Emails</h2> | ||
<table id="verified_emails"> | ||
<thead> | ||
<tr> | ||
<th>Email Address</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for email_address in verified_emails %} | ||
<tr> | ||
<td>{{ email_address }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
<tfoot> | ||
<tr><td><strong>{{ verified_emails|length }}</strong></td></tr> | ||
</tfoot> | ||
</table> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters