{% extends theme('layouts/1-column.html') %} {% from theme('macros/follow.html') import follow_btn with context %} {% from theme('macros/issues.html') import issues_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 ) %} {% block extra_head %} {% endblock %} {% block breadcrumb %}
  • {{ _('Reuses') }}
  • {{ reuse.title }}
  • {% endblock %} {% block content %} {{ breadcrumb(self, breadcrum_class=breadcrum_class, toolbar_class=toolbar_class ) }}
    {% if reuse.private %} {{ _('Private') }} {% endif %} {% if reuse.deleted %}
    {{ _('This reuse has been deleted. This will be permanent in the next 24 hours') }}
    {% endif %}

    {{ reuse.title }}

    {% if reuse.organization %} {% set author_name = reuse.organization.name %} {% set author_url = url_for('organizations.show', org=reuse.organization) %} {% elif reuse.owner %} {% set author_name = reuse.owner.fullname %} {% set author_url = url_for('users.show', user=reuse.owner) %} {% endif %}

    {# FIXME: from @abulte : We're piping some user generated content into safe, this is probably a bad idea. #} {{ _('Published on %(date)s by %(user)s', date=reuse.created_at|dateformat(format='long'), user='%(name)s'|format( name=author_name, url=author_url )|safe ) }}

    {{ _('See the reuse') }}
    {{ follow_btn(reuse) }}
    {% if reuse.organization %} {% with organization=reuse.organization %} {% include theme('organization/producer-panel.html') %} {% endwith %} {% elif reuse.owner %} {% with organization=reuse.owner, details_view = url_for("users.show", user=reuse.owner, _external=True) %} {% include theme('organization/producer-panel.html') %} {% endwith %} {% endif %}

    {{ _('Information') }}

    {{ _('Type') }}
    {{ reuse.type_label }}
    {{ _('Tags') }}
    {% for tag in reuse.tags %} {{ tag }} {% endfor %}
    {{ reuse.title }}
    {{ reuse.description|markdown }}

    {{ _('Used datasets') }} {{ reuse.datasets|length }}

    {{ _('Actions') }}

    {{ _('Embed') }}

    Embed is cool, embed is life. Lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolore, consectetur adipisicing elit.

    {{ integrate_btn(reuse) }}

    {{ _('Discussions') }} 0

    {{ _('Discussion between the organization and the community about this dataset.') }}

    {{ _('More reuses') }}

    {% endblock %}