-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This doesn't work yet, the tag gets stripped. Pushing on request from @jchristgit
- Loading branch information
1 parent
4e5a3f9
commit 610597c
Showing
12 changed files
with
57 additions
and
51 deletions.
There are no files selected for viewing
Empty file.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from django.template import Library, loader | ||
|
||
register = Library() | ||
|
||
|
||
@register.filter(name='center', is_safe=True, needs_autoescape=False) | ||
def center(value, arg=""): | ||
template = loader.get_template("components/center.html") | ||
return template.render({"value": value, "pad": arg}) |
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,10 +1,10 @@ | ||
{% extends "bases/base.html" %} | ||
{% import "bases/macros.html" as m %} | ||
{% load template_extras %} | ||
|
||
{% block body %} | ||
{% call m.center() %} | ||
{% filter center %} | ||
2FA has been disabled on your account.<br> | ||
If this was you, you can safely ignore this email.<br><br> | ||
If this wasn't you, request a password reset or raise a support ticket.<br> | ||
{% endcall %} | ||
{% endfilter %} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
2FA has been disabled on your account. | ||
If this was you, you can safely ignore this email. | ||
If this wasn't you, request a password reset or raise a support ticket. | ||
If this wasn't you, request a password reset or raise a support ticket. |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!--[if mso]> | ||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{ url }}" style="margin-top:24px;margin-bottom:8px;height:56px;v-text-anchor:middle;width:300px;padding:0 64px;" arcsize="50%" stroke="f" fillcolor="#161422"> | ||
<w:anchorlock/> | ||
<center style="color:#ffffff;font-family:sans-serif;font-size:16px;font-weight:bold;"> | ||
{{ text }} | ||
</center> | ||
</v:roundrect> | ||
<![endif]--> | ||
<!--[if !mso]> <!--> | ||
<a href="{{ url }}"> | ||
<div style="display:inline-block;line-height:56px;height:56px;border-radius:28px;padding:0 64px;background-color:#161422;color:#fff;text-decoration:none;" | ||
href="{{ url }}"> | ||
{{ text }} | ||
</div> | ||
</a><!-- <![endif]--> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<tr> | ||
<td align="center" cellpadding="{{ pad }}"> | ||
{{ value }} | ||
</td> | ||
</tr> |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<tr> | ||
<td height="{{ height }}"></td> | ||
</tr> |
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,21 +1,21 @@ | ||
{% extends "bases/base.html" %} | ||
{% import "bases/macros.html" as m %} | ||
{% load template_extras %} | ||
|
||
{% block body %} | ||
{% call m.center() %} | ||
{% filter center %} | ||
A password reset has been requested for your account.<br> | ||
If this was you, click the link below to continue with the password reset.<br> | ||
If this wasn't you, you can safely ignore this email.<br><br> | ||
This link is valid for 1 hour since the reset was requested. | ||
{% endcall %} | ||
{{ m.space(24) }} | ||
{% call m.center(24) -%} | ||
{{ m.button("RESET PASSWORD", url) }} | ||
{%- endcall %} | ||
{{ m.space(16) }} | ||
{% call m.center(16) -%} | ||
{% endfilter %} | ||
{% include "components/space.html" with heights=24 %} | ||
{% filter center:24 %} | ||
{% include "components/button.html" with text="RESET PASSWORD" url=url %} | ||
{% endfilter %} | ||
{% include "components/space.html" with height=16 %} | ||
{% filter center:16 %} | ||
<i style="font-size:80%;"> | ||
Button not working? Navigate to <a style="color:#e53935;text-decoration:none;" href="{{ url }}">{{ url }}</a> in a browser. | ||
</i> | ||
{%- endcall %} | ||
{% endfilter %} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{% extends "bases/base.html" %} | ||
{% import "bases/macros.html" as m %} | ||
{% load template_extras %} | ||
|
||
{% block body %} | ||
{% call m.center() %} | ||
{% filter center %} | ||
Thank you for signing up to {{ event_name }}.<br> | ||
Before you can start capturing flags, you need to verify your account! | ||
{% endcall %} | ||
{{ m.space(24) }} | ||
{% call m.center(24) -%} | ||
{{ m.button("VERIFY MY ACCOUNT", url) }} | ||
{%- endcall %} | ||
{{ m.space(16) }} | ||
{% call m.center(16) -%} | ||
{% endfilter %} | ||
{% include "components/space.html" with heights=24 %} | ||
{% filter center:24 %} | ||
{% include "components/button.html" with text="VERIFY MY ACCOUNT" url=url %} | ||
{% endfilter %} | ||
{% include "components/space.html" with height=16 %} | ||
{% filter center:16 %} | ||
<i style="font-size:80%;"> | ||
Button not working? Navigate to <a style="color:#e53935;text-decoration:none;" href="{{ url }}">{{ url }}</a> in a browser. | ||
</i> | ||
{%- endcall %} | ||
{% endfilter %} | ||
{% endblock %} |