Commit 837bcfd6 authored by okhin's avatar okhin 🚴

Upgrading the template to add a mailto: link for the person who edited the article

parent cef50904
Pipeline #2620 passed with stages
in 3 minutes and 6 seconds
......@@ -104,7 +104,7 @@ class Article(models.Model):
#: If the article is quoting something LQDN said or wrote
quote = models.BooleanField(_("Article directly quotes us"),
default=False)
default=False)
#: If the article speaks about something LQDN did or wrote
speak = models.BooleanField(_("Article speaks of us"), default=False)
......
......@@ -60,6 +60,10 @@
<span class="badge badge-info ml-1"><span class="glyphicon glyphicon-bullhorn" aria-label="{{ _("Speaks about us") }}"></span>
{% endif %}
<h4>{{ _("Article created by:") }}&nbsp;<em>{{ article.created_by }}</em></h4>
<p>
<a target="mailto:{{ article.created_by.user.email }}"><span class="glyphicon glyphicon-envelope" aria-label="{{ _("Contact this user by email")}}"></span>
</p>
<p>{{object.extracts |markdown}}</p>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment