{% extends "page.html" %} {% set pkg = c.pkg_dict %} {% block title %}{{ pkg.title or pkg.name }} - {{ super() }}{% endblock %} {% block breadcrumb_content %} {% set dataset = pkg.title or pkg.name %}
  • {% link_for _('Datasets'), controller='package', action='search', highlight_actions = 'new index' %}
  • {{ dataset|truncate(35) }}
  • {% endblock %} {% block actions_content %}
  • {% link_for _('Related'), controller='related', action='list', id=pkg.name, class_='btn', icon='picture' %}
  • {# NOTE: Not implemented in stage 1 #} {#
  • {% link_for _('History'), controller='package', action='history', id=pkg.name, class_='btn', icon='undo' %}
  • #} {% if h.check_access('package_update', {'id':pkg.id }) %}
  • {% link_for _('Edit'), controller='package', action='edit', id=pkg.name, class_='btn', icon='wrench' %}
  • {% endif %} {% if h.check_access('package_update', {'id':pkg.id }) %}
  • {% link_for _('Add resource'), controller='package', action='new_resource', id=pkg.name, class_='btn', icon='plus' %}
  • {% endif %} {% endblock %} {% block primary_content %} {% if c.pkg_revision_id %}

    {% set timestamp = h.render_datetime(c.pkg_revision_timestamp, with_hours=True) %} {% set url = h.url(controller='package', action='read', id=pkg.name) %} {% if c.pkg_revision_not_latest %} {% trans timestamp=timestamp, url=url %}This is an old revision of this dataset, as edited at {{ timestamp }}. It may differ significantly from the current revision.{% endtrans %} {% else %} {% trans timestamp=timestamp %}This is the current revision of this dataset, as edited at {{ timestamp }}.{% endtrans %} {% endif %}

    {% endif %}

    {{ pkg.title or pkg.name }} {% if pkg.state.startswith('draft') %} [{{ _('Draft') }}] {% endif %}

    {% if c.pkg_notes_formatted %}
    {{ c.pkg_notes_formatted }}
    {% endif %}

    Data and Resources

    {% if pkg.resources %} {% else %}

    {% trans url=h.url_for(controller='package', action='new_resource', id=pkg.name) %} This dataset has no data{#, why not add some?#} {% endtrans %}

    {% endif %}
    {% snippet "package/snippets/tags.html", tags=pkg.tags %} {% snippet "package/snippets/additional_info.html", pkg_dict=pkg %}
    {% endblock %} {% block secondary_content %} {% for group in pkg.groups %} {% snippet "snippets/group.html", group=group, truncate=70 %} {% endfor %} {% snippet "snippets/social.html" %} {% snippet "snippets/related.html", item=c.pkg.related|last, pkg_name=pkg.name %} {% snippet "snippets/license.html", pkg_dict=pkg %} {% endblock %}