{# Displays a single dataset of type 'showcase'. package - A package to display. item_class - The class name to use on the list item. truncate - The length to trucate the description to (default: 180) truncate_title - The length to truncate the title to (default: 80). show_remove - If True, show the remove button to remove showcase/dataset association. #} {% set truncate = truncate or 180 %} {% set truncate_title = truncate_title or 80 %} {% set title = package.title or package.name %} {% set notes = h.markdown_extract(package.notes, extract_length=truncate) %} {% block package_item %}
{% block image %} {% endblock %} {% block title %}
{{ h.link_to(h.truncate(title, truncate_title), h.url_for(controller='ckanext.showcase.controller:ShowcaseController', action='read', id=package.name)) }}
{% endblock %}
{% block notes %} {% if notes %}

{{ notes|urlize }}

{% else %}

{{ _("This showcase has no description") }}

{% endif %} {% endblock %}
{% if position is divisibleby 2 %}
{% endif %} {% endblock %}