{% extends "package/edit_base.html" %} {% set has_reorder = pkg_dict and pkg_dict.resources and pkg_dict.resources|length > 0 %} {% block subtitle %}{{ _('Resources') }} {{ g.template_title_delimiter }} {{ h.dataset_display_name(pkg) }}{% endblock %} {% block page_primary_action %} {% link_for _('Add new resource'), named_route=pkg_dict.type ~ '_resource.new', id=pkg_dict.name, class_='btn btn-primary', icon='plus' %} {% endblock %} {% block primary_content_inner %} {% if pkg.resources %}
This dataset has no data, why not add some?
{% endtrans %} {% endif %} {% endblock %} {% block scripts %} {{ super() }} {% if has_reorder %} {% asset 'vendor/reorder' %} {% endif %} {% endblock %}