Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new email templates #500

Merged
merged 1 commit into from
Sep 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 69 additions & 15 deletions website/templates/email/bug_added.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,69 @@
Dear {{name}},<br>
<br>
A bug has been found on {{domain}} by {{username}}<br>
<br>
You can see more info here:<br>
<br>
https://www.bugheist.com/issue/{{id}}<br>
<br>
Feel free to signup to one of our plans:<br>
<br>
https://www.bugheist.com/start/<br>
<br>
Best,<br>
<br>
The Bugheist Team<br>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body style="margin: 0; padding: 0;">
<table style="border: 1px solid #cccccc;" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="border: 1px solid #cccccc;">
<tr>
<td align="center" style="padding: 40px 0 30px 0;">
<img src="https://www.bugheist.com/static/img/logo-small-transparent.6bfc64672f90.png" alt="Bugheist" width="300" height="73" style="display: block;"/>
</td>
</tr>
<tr>
<td align="left">
Dear {{name}},<br>
<br>
A bug has been found on {{domain}} by {{username}}<br>
<br>
You can see more info here:<br>
<br>
https://www.bugheist.com/issue/{{id}}<br>
<br>
Feel free to signup to one of our plans:<br>
<br>
https://www.bugheist.com/start/<br>
<br>
Best,<br>
<br>
The Bugheist Team<br>
</td>
</tr>
<tr>
<td style="padding: 30px 30px 30px 30px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border: 1px solid #cccccc;">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr border="0" align="center">
<td>
<a href="https://twitter.com/bugheist">
Twitter</a>
</td>
<td style="font-size: 0; line-height: 0;" width="20">&nbsp;</td>
<td>
<a href="https://www.facebook.com/bugheist">
Facebook</a>
</td>
<td style="font-size: 0; line-height: 0;" width="40">&nbsp;</td>
<td>
<a href="https://github.com/OWASP/BLT">
GitHub</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
128 changes: 91 additions & 37 deletions website/templates/email/bug_summary.txt
Original file line number Diff line number Diff line change
@@ -1,38 +1,92 @@
{% load humanize %}
Bugheist {{month}} Summary<br>
<br>
The leaderboard has been reset, go forth and find bugs!<br>
<br>
{{month}}'s Top 5 Bug Hunters<br>
{% for leader in leaderboard %}
{{forloop.counter|ordinal}} Place - {{leader.username}} ({{leader.total_score}} points)<br>{% endfor %}
<br>
<br>
<a href="http://bugheist.com/">[[[ Sponsor the Leaderboard ]]]</a><br>
(click "Sponsor a Prize" on the leaderboard)<br>
<br>
--- {{month}} Stats ---<br>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body style="margin: 0; padding: 0;">
<table style="border: 1px solid #cccccc;" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="border: 1px solid #cccccc;">
<tr>
<td align="center" style="padding: 40px 0 30px 0;">
<img src="https://www.bugheist.com/static/img/logo-small-transparent.6bfc64672f90.png" alt="Bugheist" width="300" height="73" style="display: block;"/>
</td>
</tr>
<tr>
<td align="left">
{% load humanize %}
Bugheist {{month}} Summary<br>
<br>
The leaderboard has been reset, go forth and find bugs!<br>
<br>
{{month}}'s Top 5 Bug Hunters<br>
{% for leader in leaderboard %}
{{forloop.counter|ordinal}} Place - {{leader.username}} ({{leader.total_score}} points)<br>{% endfor %}
<br>
<br>
<a href="http://bugheist.com/">[[[ Sponsor the Leaderboard ]]]</a><br>
(click "Sponsor a Prize" on the leaderboard)<br>
<br>
--- {{month}} Stats ---<br>

<br>
Most Responsive Domains:<br>
{% for domain in responsive %}
{{ domain.url }} - {{domain.modified|timesince}} ago<br>{% endfor %}
<br>
<br>
Most Closed Bugs:<br>
{% for domain in closed_issues %}
{{ domain.url }} - {{domain.count}} closed bugs<br>{% endfor %}
<br>
<br>
Most Open Bugs:<br>
{% for domain in open_issues %}
{{ domain.url }} - {{domain.count}} opened bugs<br>{% endfor %}
<br>
<br>
Most Viewed Bugs:<br>
{% for issue in most_viewed %}
{{ issue.domain }} - {{issue.description|truncatewords:20}} (viewed {{issue.views|default:"0"}} times)<br>{% endfor %}
<br>
Keep your website bug free<br>
<a href="http://bugheist.com/hunt">[[[ Sponsor a Bug Hunt Today ]]]</a><br>
http://bugheist.com/hunt<br>
<br>
Most Responsive Domains:<br>
{% for domain in responsive %}
{{ domain.url }} - {{domain.modified|timesince}} ago<br>{% endfor %}
<br>
<br>
Most Closed Bugs:<br>
{% for domain in closed_issues %}
{{ domain.url }} - {{domain.count}} closed bugs<br>{% endfor %}
<br>
<br>
Most Open Bugs:<br>
{% for domain in open_issues %}
{{ domain.url }} - {{domain.count}} opened bugs<br>{% endfor %}
<br>
<br>
Most Viewed Bugs:<br>
{% for issue in most_viewed %}
{{ issue.domain }} - {{issue.description|truncatewords:20}} (viewed {{issue.views|default:"0"}} times)<br>{% endfor %}
<br>
Keep your website bug free<br>
<a href="http://bugheist.com/hunt">[[[ Sponsor a Bug Hunt Today ]]]</a><br>
http://bugheist.com/hunt<br>
</td>
</tr>
<tr>
<td style="padding: 30px 30px 30px 30px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border: 1px solid #cccccc;">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr border="0" align="center">
<td>
<a href="https://twitter.com/bugheist">
Twitter</a>
</td>
<td style="font-size: 0; line-height: 0;" width="20">&nbsp;</td>
<td>
<a href="https://www.facebook.com/bugheist">
Facebook</a>
</td>
<td style="font-size: 0; line-height: 0;" width="40">&nbsp;</td>
<td>
<a href="https://github.com/OWASP/BLT">
GitHub</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
77 changes: 66 additions & 11 deletions website/templates/email/bug_updated.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,66 @@
Dear {{name}},<br>
<br>
{{domain}} bug # {{id}} has been {{action}} by {{username}}<br>
<br>
You can see more info here:<br>
<br>
https://www.bugheist.com/issue/{{id}}<br>
<br>
Best,<br>
<br>
The Bugheist Team<br>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Demystifying Email Design</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body style="margin: 0; padding: 0;">
<table style="border: 1px solid #cccccc;" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="border: 1px solid #cccccc;">
<tr>
<td align="center" style="padding: 40px 0 30px 0;">
<img src="https://www.bugheist.com/static/img/logo-small-transparent.6bfc64672f90.png" alt="Bugheist" width="300" height="73" style="display: block;"/>
</td>
</tr>
<tr>
<td align="left">
Dear {{name}},<br>
<br>
{{domain}} bug # {{id}} has been {{action}} by {{username}}<br>
<br>
You can see more info here:<br>
<br>
https://www.bugheist.com/issue/{{id}}<br>
<br>
Best,<br>
<br>
The Bugheist Team<br>
</td>
</tr>
<tr>
<td style="padding: 30px 30px 30px 30px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border: 1px solid #cccccc;">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr border="0" align="center">
<td>
<a href="https://twitter.com/bugheist">
Twitter</a>
</td>
<td style="font-size: 0; line-height: 0;" width="20">&nbsp;</td>
<td>
<a href="https://www.facebook.com/bugheist">
Facebook</a>
</td>
<td style="font-size: 0; line-height: 0;" width="40">&nbsp;</td>
<td>
<a href="https://github.com/OWASP/BLT">
GitHub</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
70 changes: 62 additions & 8 deletions website/templates/email/comment_mention.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,64 @@
Hey, {{name}},<br>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body style="margin: 0; padding: 0;">
<table style="border: 1px solid #cccccc;" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="border: 1px solid #cccccc;">
<tr>
<td align="center" style="padding: 40px 0 30px 0;">
<img src="https://www.bugheist.com/static/img/logo-small-transparent.6bfc64672f90.png" alt="Bugheist" width="300" height="73" style="display: block;"/>
</td>
</tr>
<tr>
<td align="left">
Hey, {{name}},<br>

{{ commentor }} has mentioned you in the following issue
https://www.bugheist.com/issue/{{ issue_pk }}
<br>
{{comment}}
{{ commentor }} has mentioned you in the following issue
https://www.bugheist.com/issue/{{ issue_pk }}
<br>
{{comment}}

Best,<br>
<br>
The Bugheist Team<br>
Best,<br>
<br>
The Bugheist Team<br>
</td>
</tr>
<tr>
<td style="padding: 30px 30px 30px 30px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border: 1px solid #cccccc;">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr border="0" align="center">
<td>
<a href="https://twitter.com/bugheist">
Twitter</a>
</td>
<td style="font-size: 0; line-height: 0;" width="20">&nbsp;</td>
<td>
<a href="https://www.facebook.com/bugheist">
Facebook</a>
</td>
<td style="font-size: 0; line-height: 0;" width="40">&nbsp;</td>
<td>
<a href="https://github.com/OWASP/BLT">
GitHub</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Loading