{% load wagtailcore_tags %} {% load wagtailroutablepage_tags %} {% load waggylabs_filters %}
{% if value.show_user %} {% if value.show_header %}
{{ value.user_header }}
{% endif %} {# TODO: add correct link after developing #}
{% if value.show_avatar and value.avatar_location != 'end' %}{{ value.avatar }}{% endif %} {% if value.full_name %}{{ value.full_name }}{% else %}{{ value.username }}{% endif %} {% if value.show_avatar and value.avatar_location == 'end' %}{{ value.avatar }}{% endif %}
{% endif %} {% if value.email_header %} {% if value.show_header %}
{{ value.email_header }}
{% endif %}
{{ value.email }}
{% endif %} {% if value.show_first_published_at %} {% if value.show_header %}
{{ value.first_published_at_header }}
{% endif %}
{% if value.datatime_style == 'timesince' %} {{ value.first_published_at|timesince }} {{ value.timesince_text }} {% else %} {{ value.first_published_at|date:'j E, Y' }} {% if value.datatime_style == 'datetime' %}{{ value.first_published_at|time:value.time_format }}{% endif %} {% endif %}
{% endif %} {% if value.show_last_published_at %} {% if value.show_header %}
{{ value.last_published_at_header }}
{% endif %}
{% if value.datatime_style == 'timesince' %} {{ value.last_published_at|timesince }} {{ value.timesince_text }} {% else %} {{ value.last_published_at|date:'j E, Y' }} {% if value.datatime_style == 'datetime' %}{{ value.last_published_at|time:value.time_format }}{% endif %} {% endif %}
{% endif %}