{% set truncate = truncate or 180 %} {% set truncate_title = truncate_title or 80 %} {% set title = datarequest.get('title', '') %} {% set description = h.markdown_extract(datarequest.get('description', ''), extract_length=truncate) %}
  • {% block package_item_content %}

    {% if datarequest.get('closed', False) %} {% trans %}Closed{% endtrans %} {% else %} {% trans %}Open{% endtrans %} {% endif %} {{ h.link_to(h.truncate(title, truncate_title), h.url_for(controller='ckanext.datarequests.controllers.ui_controller:DataRequestsUI', action='show', id=datarequest.get('id', ''))) }}

    {% if description %}
    {{ description }}
    {% endif %}
    {% if h.show_comments_tab() %} {{ h.get_comments_number(datarequest.get('id', '')) }} {% endif %}
    {{ h.time_ago_from_timestamp(datarequest.open_time) }}
    {% endblock %}