diff --git a/dmoj/settings.py b/dmoj/settings.py index 826311e..d7c1aaa 100644 --- a/dmoj/settings.py +++ b/dmoj/settings.py @@ -98,7 +98,7 @@ MATHOID_CACHE_URL = False TEXOID_GZIP = False TEXOID_META_CACHE = 'default' TEXOID_META_CACHE_TTL = 86400 -DMOJ_NEWSLETTER_ID_ON_REGISTER = None +DMOJ_NEWSLETTER_ID_ON_REGISTER = 1 BAD_MAIL_PROVIDERS = () BAD_MAIL_PROVIDER_REGEX = () diff --git a/templates/newsletter/newsletter_list.html b/templates/newsletter/newsletter_list.html index 8feeb70..a528077 100644 --- a/templates/newsletter/newsletter_list.html +++ b/templates/newsletter/newsletter_list.html @@ -1,24 +1,19 @@ {% extends "base.html" %} -{% block title %}Newsletter list - {{ SITE_LONG_NAME }}{% endblock %} -{% block content_title %}Newsletter list{% endblock %} - -{% block media %} - -{% endblock %} +{% block title %} {{ _('Newsletter list') }} - {{ SITE_LONG_NAME }}{% endblock %} +{% block content_title %} {{ _('Newsletter list') }} {% endblock %} {% block body %} +

{{ _('Subscribe to get the latest emails about upcoming contests and events.')}}

+
+
{% if request.user.is_authenticated %} -
+ {% csrf_token %} {{ formset.management_form }} - - + + {% for form in formset.forms %} @@ -32,7 +27,7 @@
NewsletterSubscribe{{ _('Newsletter') }}{{ _('Subscribe') }}

- +

{% else %} @@ -47,4 +42,5 @@ {% endfor %} {% endif %} +
{% endblock %} \ No newline at end of file