{% extends theme('layouts/1-column.html') %} {% set meta = { 'title': post.name, 'description': post.headline|mdstrip|forceescape, 'image': post.image(external=True), 'keywords': post.tags } %} {% set bundle = 'post' %} {% set body_class = 'post-display' %} {% block title %}{{ post.name }}{% endblock %} {% block breadcrumb %}
  • {{ _('News') }}
  • {{ post.name }}
  • {% endblock %} {% block main_content %}

    {{ post.name }}

    {% if post.published %}

    {{ _('Published on %(date)s',date=post.published|dateformat(format='long')) }}

    {% else %}
    {{ _('This post is a draft and will not be visible by other users') }}
    {% endif %} {% if post.deleted %}
    {{ _('This post has been deleted. This will be permanent in the next 24 hours') }}
    {% endif %}
    {{ post.headline|mdstrip(300) }}
    {% if post.image %}
    {% endif %}
    {% if post.body_type and post.body_type == 'html' %}
    {{ post.content|safe }}
    {% else %}
    {{ post.content|markdown }}
    {%endif%}
    {% if post.datasets %}

    {{ _('Datasets') }} {{ post.datasets|length }}

    {% with datasets = post.datasets %} {% include theme('dataset/search-results.html') %} {% endwith %}
    {% endif %} {% if post.reuses %}

    {{ _('Reuses') }} {{ post.reuses|length }}

    {% endif %} {% if sysadmin %}

    {{ _('Actions') }}

    {% endif %} {% if previous_post or next_post %}
    {% if previous_post %} {{ _('Previous post') }} {% endif %}
    {% if next_post %} {{ _('Next post') }} {% endif %}
    {% endif %} {% if config['POST_DISCUSSIONS_ENABLED'] %}
    {% endif %} {% endblock %}