{% extends "page.html" %} {% set pkg = pkg_dict or c.pkg_dict %} {% set name = pkg.title or pkg.name %} {% set editor = h.get_wysiwyg_editor() %} {% set ckan_29_or_higher = h.ckan_version().split('.')[1] | int >= 9 %} {% set showcase_read_route = 'showcase_blueprint.read' if ckan_29_or_higher else 'showcase_read' %} {% set showcase_index_route = 'showcase_blueprint.index' if ckan_29_or_higher else 'showcase_index' %} {% set showcase_edit_route = 'showcase_blueprint.edit' if ckan_29_or_higher else 'showcase_edit' %} {% block subtitle %}{{ pkg.title or pkg.name }} - {{ _('Showcases') }}{% endblock %} {% block styles %} {{ super() }} {% set _type = 'asset' if h.ckan_version().split('.')[1] | int >= 9 else 'resource' %} {% snippet 'showcase/snippets/showcase_css_' ~ _type ~ '.html' %} {% if editor == 'ckeditor' %} {% snippet 'showcase/snippets/ckeditor_content_css_' ~ _type ~ '.html' %} {% endif %} {% endblock %} {% block links -%} {{ super() }} {% endblock -%} {% block head_extras -%} {{ super() }} {% set description = h.markdown_extract(pkg.notes, extract_length=200)|forceescape %} {% if pkg.image_display_url %} {% endif %} {% endblock -%} {% block breadcrumb_content_selected %} class="active"{% endblock %} {% block breadcrumb_content %} {% set showcase = pkg.title or pkg.name %}
  • {{ h.nav_link(_('Showcases'), named_route=showcase_index_route, highlight_actions = 'new index') }}
  • {% link_for showcase|truncate(30), named_route=showcase_read_route, id=pkg.name %} {% endblock %} {% block page_header %} {% endblock %} {% block pre_primary %} {% endblock %} {% block primary_content_inner %} {% if h.check_access('ckanext_showcase_update', {'id':pkg.id }) %}
    {% link_for _('Manage'), named_route=showcase_edit_route, id=pkg.name, class_='btn btn-default', icon='wrench' %}
    {% endif %} {% block package_description %} {% if pkg.private %} {{ _('Private') }} {% endif %}

    {% block page_heading %} {{ name }} {% if pkg.state.startswith('draft') %} [{{ _('Draft') }}] {% endif %} {% endblock %}

    {% if pkg.image_display_url %}

    {{ name }}

    {% endif %} {% block package_notes %} {% if pkg.showcase_notes_formatted and editor == 'ckeditor' %}
    {{ pkg.showcase_notes_formatted|safe }}
    {% elif pkg.showcase_notes_formatted %}
    {{ pkg.showcase_notes_formatted }}
    {% endif %} {% endblock %} {% if pkg.url %}

    {{ _('Launch website') }}

    {% endif %} {% endblock %} {% block package_tags %} {% snippet "showcase/snippets/tags.html", tags=pkg.tags %} {% endblock %} {% block package_search_results_list %} {% endblock %} {% endblock %} {% block secondary_content %} {% block secondary_help_content %}{% endblock %} {% block package_info %} {% snippet 'showcase/snippets/showcase_info.html', pkg=pkg, showcase_pkgs=c.showcase_pkgs %} {% endblock %} {% block package_social %} {% snippet "snippets/social.html" %} {% endblock %} {% endblock %}