Skip to content
Snippets Groups Projects
Commit f412663d authored by Dorian Lesbre's avatar Dorian Lesbre
Browse files

Added some email protection

parent ea204063
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,11 @@ span.helptext {
display: flex;
}
.antispam {
unicode-bidi: bidi-override;
direction: rtl;
}
.button, .button:link, .button:visited, input[type=submit] {
color: white;
text-decoration: none;
......
......@@ -92,7 +92,7 @@
</a>
</div>
{% if settings.contact_email %}
<p>Pour tout problème, contacter&nbsp;:<br>{{ settings.contact_email }}</p>
<p>Pour tout problème, contacter&nbsp;:<br><span class="antispam">{{ settings.contact_email_reversed }}</span></p>
{% endif %}
</footer>
......
......@@ -41,6 +41,10 @@ class SiteSettings(SingletonModel):
display_planning = models.BooleanField("Afficher le planning", default=False)
@property
def contact_email_reversed(self):
return self.contact_email[::-1]
class Meta:
verbose_name = "paramètres"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment