Implement basic email munging to prevent spam
authorGu1 <gu1@cafai.fr>
Mon, 7 Apr 2014 19:37:22 +0000 (21:37 +0200)
committerGu1 <gu1@cafai.fr>
Mon, 7 Apr 2014 19:37:22 +0000 (21:37 +0200)
ffdnispdb/templates/project_detail.html

index 37740ff..f4c3eef 100644 (file)
@@ -48,7 +48,7 @@
         {%- endif %}
         {%- if project.email %}
         {{ field(_("email")) }}
-          <dd>{% if project.email %}<a href="mailto:{{ project.email }}"><i class="icon-envelope"></i> {{ project.email }}</a>{% else %}<em>None given</em>{% endif %}</dd>
+          <dd>{% if project.email %}<a href="mailto:{{ "[NO_SPAM]"+project.email }}"><i class="icon-envelope"></i> {{ project.email|e|replace("@", '<span style="display: none">PWET</span>@'|safe) }}</a>{% else %}<em>None given</em>{% endif %}</dd>
         {%- endif %}
         {%- if project.mainMailingList %}
         {{ field(_("main mailing list")) }}