diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..4c5e41041 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "server/templates/emails"] + path = server/templates/emails + url = https://github.com/berkmancenter/mediacloud-email-templates.git diff --git a/server/templates/emails b/server/templates/emails new file mode 160000 index 000000000..d8ec85fda --- /dev/null +++ b/server/templates/emails @@ -0,0 +1 @@ +Subproject commit d8ec85fdad9bf429d49c7fa9aed99bbf566c4f98 diff --git a/server/templates/emails/email.html b/server/templates/emails/email.html deleted file mode 100644 index d1f5e6c47..000000000 --- a/server/templates/emails/email.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - {% block email_title %}{% endblock %} - - - - - - - - - -
- - - - - - - -
- - - - -
-

-

{% block content_title %}{% endblock %}

- {% block content_body %}{% endblock %} -

- Thanks, -
- — the Media Cloud team -

-

- -
-
- -
- - - -
- Problems? Email support@mediacloud.org -
- MIT Center for Civic Media and Berkman Klein Center for Internet and Society at Harvard University -
- © 2017 -
-
-
- - - - - - - diff --git a/server/templates/emails/email.txt b/server/templates/emails/email.txt deleted file mode 100644 index 5d94a573c..000000000 --- a/server/templates/emails/email.txt +++ /dev/null @@ -1,15 +0,0 @@ -{% block content_title %}{% endblock %} - -{% block content_body %}{% endblock %} - -Thanks, - -— the Media Cloud team - -{% block action_text %}{% endblock %}: -{% block action_url %}{% endblock %} - -Problems? Email support@mediacloud.org - -MIT Center for Civic Media & Berkman Klein Center for Internet and Society at Harvard University -© 2017 diff --git a/server/templates/emails/generic.html b/server/templates/emails/generic.html deleted file mode 100644 index 2fd0908a6..000000000 --- a/server/templates/emails/generic.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends "email.html" %} - -{% block email_title %} -{{ email_title }} -{% endblock %} - -{% block content_title %} -{{ content_title }} -{% endblock %} - -{% block content_body %} -

-{{content_body}} -

-{% endblock %} - -{% block action_text %} -{{action_text}} -{% endblock %} - -{% block action_url %} -{{action_url}} -{% endblock %} diff --git a/server/templates/emails/generic.txt b/server/templates/emails/generic.txt deleted file mode 100644 index a85e6d294..000000000 --- a/server/templates/emails/generic.txt +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "email.txt" %} - -{% block content_title %} -{{ content_title }} -{% endblock %} - -{% block content_body %} -{{content_body}} -{% endblock %} - -{% block action_text %} -{{action_text}} -{% endblock %} - -{% block action_url %} -{{action_url}} -{% endblock %} diff --git a/server/templates/emails/source_suggestion_ack.html b/server/templates/emails/source_suggestion_ack.html deleted file mode 100644 index 062bebab7..000000000 --- a/server/templates/emails/source_suggestion_ack.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends "email.html" %} - -{% block email_title %} -Thanks for Suggesting {{ url }} -{% endblock %} - -{% block content_title %} -Thanks for Suggesting {{ url }} -{% endblock %} - -{% block content_body %} -

-Thanks for suggesting {{ url }}. We'll review it soon and get back to you. -

-

-Suggested by: {{ username }} -

-

-URL: {{ url }} -

-

-Name: {{ name }} -

-

-Feed URL: {{ feed_url }} -

-

-Reason: {{ reason }} -

-{% endblock %} - -{% block action_text %} -Login to Media Cloud -{% endblock %} - -{% block action_url %} -https://sources.mediacloud.org/#/login -{% endblock %} diff --git a/server/templates/emails/source_suggestion_ack.txt b/server/templates/emails/source_suggestion_ack.txt deleted file mode 100644 index 07752f151..000000000 --- a/server/templates/emails/source_suggestion_ack.txt +++ /dev/null @@ -1,29 +0,0 @@ -{% extends "email.txt" %} - -{% block content_title %} -Thanks for Suggesting {{ url }} -{% endblock %} - -{% block content_body %} -Hi, - -Thanks for suggesting {{ url }}. We'll review it soon and get back to you. - -Suggested by: {{ username }} - -URL: {{ url }} - -Name: {{ name }} - -Feed URL: {{ feed_url }} - -Reason: {{ reason }} -{% endblock %} - -{% block action_text %} -Login to Media Cloud -{% endblock %} - -{% block action_url %} -https://sources.mediacloud.org/#/login -{% endblock %}