]> git.parisson.com Git - mezzo.git/commitdiff
Fix no newsletter
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 5 Jan 2017 17:13:46 +0000 (18:13 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 5 Jan 2017 17:13:46 +0000 (18:13 +0100)
app/templates/includes/footer.html

index 7f85ebcae2dc448d83af3120262f938bf30036ac..9bc854a020c0817045520182b451fd4da149d45b 100644 (file)
@@ -3,9 +3,11 @@
     <div class="container">
         <div class="row">
             <div class="col-sm-11 tar-sm tal-xs">
-                <a class="button button--small button--white mr3" href="{{ newsletter_subscribing_url }}">
-                    {% trans "Subscribe to our newsletter" %}
-                </a>
+                {% if newsletter_subscribing_url %}
+                    <a class="button button--small button--white mr3" href="{{ newsletter_subscribing_url }}">
+                        {% trans "Subscribe to our newsletter" %}
+                    </a>
+                {% endif %}
                 {% for link in host_organization.links.all %}
                     <a class="footer__follow-link {{ link.link_type.slug }}" href="{{ link.url }}" target="_blank" title="{% trans 'Follow us on' %} {{ link.title }}"><i class="fa fa-{{ link.link_type.slug }}{% if link.link_type.fa_option %}-{{ link.link_type.fa_option }}{% endif %}"></i></a>
                 {% endfor %}