{% extends theme('base.html') %} {% from theme('macros/follow.html') import follow_btn with context %} {% from theme('macros/share.html') import share_btn with context %} {% from theme('macros/integrate.html') import integrate_btn with context %} {% from theme('macros/issues.html') import issues_btn with context %} {% set meta = { 'title': dataset.title, 'description': dataset.description|mdstrip(60)|forceescape, 'image': dataset.organization and dataset.organization.logo(external=True) or '', 'keywords': [_('dataset')] + dataset.tags, } %} {% set bundle = 'dataset' %} {% set body_class = 'dataset-display' %} {% block extra_head %} {% endblock %} {% block breadcrumb %}
  • {{ _('Datasets') }}
  • {{ dataset.title|truncate(128) }}
  • {% endblock %} {% block content %}
    {{ dataset.description|markdown }}

    {{ _('Resources') }}

    {# TODO: extract max_resources conf #} {% set max_resources = 6 %} {% for resource in dataset.resources %} {% if loop.index0 == max_resources %}
    {% endif %} {% include theme('dataset/resource/list-item.html') %} {% else %}

    {{ _('No resources') }}

    {% endfor %} {% if dataset.resources|length > max_resources %}

    {% endif %} {% if can_edit %}
    +

    {{ _('Add a resource') }}

    {% endif %}
    {# end resources #} {# button bar #}
    {% if can_edit %} {% endif %} {% if sysadmin %}
    {% endif %}
    {{ follow_btn(dataset, ['fa-star-o', 'fa-star']) }}
    {{ share_btn(dataset.title) }}
    {{ integrate_btn(dataset) }}
    {{ issues_btn(dataset) }}
    {# end button bar #}
    {# end left column #} {# Right sidebar #}

    {{ _('Discussions') }}

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

    {{ _('Community resources') }}

    {% for resource in dataset.community_resources %} {% include theme('dataset/resource/list-item.html') %} {% endfor %}
    +

    {{ _('New community resource') }}

    {{ _('You have built a more comprehensive database than those presented here? This is the time to share it!') }}

    {{ _('Reuses') }}

    {% for reuse in reuses %}
    {{ reuse.title }}

    {{ reuse.title }}

    {{ reuse|owner_avatar(25) }} {{ reuse|owner_name }} {{ reuse.created_at|dateformat('long') }}
    {% if reuse.description %} {{ reuse.description|mdstrip(180) }} {% endif %}
    {% if current_user.sysadmin or reuse.owner == current_user %} {% endif %} {% if current_user.sysadmin %} {% endif %}
    {% endfor %}

    {% trans %}You reused these data and published an article, a computer graphics, or an application? It's time to let you know! Reference your work in just a few clicks and increase your visibility.{% endtrans %}

    {% endblock %}