Merge pull request #83 from jedie/author_name

Display username if full name not set
This commit is contained in:
Iacopo Spalletti 2015-02-19 17:50:23 +01:00
commit 9f7584c161

View file

@ -8,7 +8,7 @@
<ul class="post-detail">
{% if post.author %}
<li>
{% trans "by" %} <a href="{% url 'djangocms_blog:posts-author' post.author.get_username %}">{{ post.author.get_full_name }}</a>
{% trans "by" %} <a href="{% url 'djangocms_blog:posts-author' post.author.get_username %}">{% if post.author.get_full_name %}{{ post.author.get_full_name }}{% else %}{{ post.author }}{% endif %}</a>
</li>
{% endif %}
<li>