{% extends theme('layouts/1-column.html') %} {% from theme('macros/follow.html') import follow_btn with context %} {% from theme('macros/integrate.html') import integrate_btn with context %} {% from theme('macros/breadcrumb.html') import breadcrumb with context %} {% set meta = { 'title': reuse.title, 'description': reuse.description|mdstrip(60)|forceescape, 'image': reuse.image(external=True), 'keywords': [_('reuse')] + reuse.tags, 'robots': 'noindex, nofollow' if reuse.is_hidden else '', } %} {% set bundle = 'reuse' %} {% set body_class = 'reuse-display' %} {% set community_subtitle = _('Explore with %(certifier)s', certifier=config.SITE_TITLE ) %} {% set read_only_mode = config['READ_ONLY_MODE'] %} {% set visible_datasets = reuse.datasets|visibles %} {% block extra_head %} {% cache cache_duration, 'reuse-extra-head', reuse.id|string, g.lang_code, reuse.last_modified|string %} {% endcache %} {% endblock %} {% block breadcrumb %} {% cache cache_duration, 'reuse-breadcrumb', reuse.id|string, g.lang_code, reuse.last_modified|string %}
  • {{ _('Reuses') }}
  • {{ reuse.title }}
  • {% endcache %} {% endblock %} {% block toolbar %} {{ follow_btn(reuse) }} {{ _('See the reuse') }} {% if can_edit %}
    {{ _('Edit') }}
    {% endif %} {% endblock %} {% block content %} {% cache cache_duration, 'reuse-content', reuse.id|string, g.lang_code, current_user.slug or 'anonymous', reuse.last_modified|string %} {{ breadcrumb(self) }}
    {% if reuse.private or reuse.deleted %}
    {% if reuse.private %}

    {{ _('Private') }}

    {% endif %} {% if reuse.deleted %}

    {{ _('Deleted') }}

    {% endif %}
    {% endif %}

    {{ reuse.title }}

    {{ _('Description') }}

    {{ reuse.description|markdown }}
    {% if sysadmin %}
    {% endif %} {% if reuse.organization %} {% with organization=reuse.organization, producer_type='organization' %} {% include theme('organization/producer-name-with-logo.html') %} {% endwith %} {% elif reuse.owner %} {% with organization=reuse.owner, producer_type='owner' %} {% include theme('organization/producer-name-with-logo.html') %} {% endwith %} {% endif %}
    {% if reuse.topic %}

    {{ _('Topic') }}

    {{ reuse.topic_label }}

    {% endif %}

    {{ _('Type') }}

    {{ reuse.type_label }}

    {% if reuse.tags %}

    {{ _('Tags') }}

      {% for tag in reuse.tags %}
    • {{ tag|truncate(35, True) }}

    • {% endfor %}
    {% endif %}

    {{ _('Creation date') }}

    {{ reuse.created_at|dateformat(format='long') }}

    {{ _('Last update') }}

    {{ reuse.last_modified|dateformat(format='long') }}

    {{ ngettext('%(num)d used dataset', '%(num)d used datasets', visible_datasets|length) }}

    {% with datasets = visible_datasets %} {% include theme('dataset/search-results.html') %} {% endwith %}
    {{ hook('reuse.display.metrics') }}
    {% if not reuse.metrics.discussions %}

    {{ _('Discussions') }}

    {% include theme('svg/blank_state/discussion.svg') %}

    {{ _('There are no discussions for this reuse yet.') }}

    {% endif %}
    {% if related_reuses %}

    {{ ngettext('%(num)d reuse from the same creator', '%(num)d reuses from the same creator', related_reuses|length) }}

    {% else %}

    {{ _('Reuses from the same creator') }}

    {% include theme('svg/blank_state/reuse.svg') %}

    {{ _('There are no other reuses from this creator.') }}

    {% endif %}
    {% endcache %} {% endblock %}