{% 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) %}

<li class="{{ item_class or "dataset-item" }}">
  {% block package_item_content %}
    <div class="dataset-content">
      <h3 class="dataset-heading">
        {% if datarequest.get('closed', False) %}
          <span class="uppercase label label-closed">
            <i class="icon-lock"></i> Closed
          </span>
        {% else %}
          <span class="uppercase label label-open">
            <i class="icon-unlock"></i> Open
          </span>
        {% 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', ''))) }}
      </h3>
      {% if description %}
        <div>{{ description }}</div>
      {% endif %}
      <div class="datarequest-properties">
        <span class="date-datarequests">{{ h.time_ago_from_timestamp(datarequest.open_time) }}</span>
      </div>
    </div>
  {% endblock %}
</li>

{% 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) %}
{% set status = datarequest.get('status', '') %}

<li class="{{ item_class or "dataset-item" }}">
  {% block package_item_content %}
    <div class="dataset-content">
      <h3 class="dataset-heading">
          {% if status == 'Closed' %}
          <span class="uppercase label label-closed">
              <i class="icon-lock"></i> {% trans %} {{ status }} {% endtrans %}
          </span>
          {% else %}
          <span class="uppercase label label-open">
              <i class="icon-unlock"></i> {% trans %} {{ status }} {% endtrans %}
          </span>
          {% 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', ''))) }}
      </h3>
      {% if description %}
        <div>{{ description }}</div>
      {% endif %}
      <div class="datarequest-properties">
        <span class="date-datarequests">{{ h.time_ago_from_timestamp(datarequest.open_time) }}</span>
      </div>
    </div>
  {% endblock %}
</li>

Add status to data requests
Add status to data requests
