{% load i18n static cosinnus_tags widget_tweaks thumbnail %}
{% if offer.attached_image %}
{% endif %}

{{ offer.title }}

{% if offer.description and offer.description|length > 0 %} {{ offer.description|textfield }} {% else %} {% trans "(No description set)" %} {% endif %}

{% with categories=offer.categories.all %} {% if categories %} {% trans "offered in" %}: {% for category in categories %} {{ category.name }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %} {% endwith %}
{% if offer.is_active %} {% trans "expires on" %}: {% else %} {% trans "expired on" %}: {% endif %}


{% blocktrans with username=offer.creator.first_name %}Contact {{ username }} directly{% endblocktrans %}:

{% if offer.phone_number %}

{% trans "Phone number" %}: {% if user.is_authenticated %} {{ offer.phone_number.as_international }} {% else %} ({% trans "Only shown for registered users" %}) {% endif %}

{% endif %} {% if not SETTINGS.COSINNUS_IS_INTEGRATED_PORTAL %} {% endif %}

{% if offer.attached_images %} {% include 'cosinnus/common/attached_images_gallery.html' with object=offer %} {% endif %}
{% if offer.attached_objects.exists %} {% cosinnus_render_attached_objects offer skipImages=True %} {% endif %} {% include 'cosinnus/media_tags_readonly.html' with object=offer hide_attached=True list_view="noindent" %}