{% extends "organization/edit_base.html" %} {% block subtitle %}{{ _('Edit datasets') }} - {{ super() }}{% endblock %} {% block primary_content_inner %}

{{ _('Edit datasets') }}

{% block search_form %} {% set sorting = [ (_('Name Ascending'), 'title_string asc'), (_('Name Descending'), 'title_string desc'), (_('Last Modified'), 'data_modified desc') ] %} {% snippet 'snippets/search_form.html', form_id='organization-datasets-search-form', type='dataset', query=c.q, count=c.page.item_count, sorting=sorting, sorting_selected=c.sort_by_selected, no_title=true, search_class=' ' %} {% endblock %} {% block form %} {% if c.page.item_count %}
{% for package in c.packages %} {% set truncate = truncate or 180 %} {% set truncate_title = truncate_title or 80 %} {% set title = package.title or package.name %} {% set notes = h.markdown_extract(package.notes, extract_length=truncate) %} {% endfor %}
{% snippet 'snippets/add_dataset.html', group=c.group_dict.id %}
{{ _('Edit') }}

{{ h.link_to(h.truncate(title, truncate_title), h.url_for(controller='dataset', action='read', id=package.name)) }} {% if package.get('state', '').startswith('draft') %} {{ _('Draft') }} {% elif package.get('state', '').startswith('deleted') %} {{ _('Deleted') }} {% endif %} {% if package.private %} {{ _('Private') }} {% endif %}

{% if notes %}

{{ notes|urlize }}

{% endif %}
{% else %}

{{ _('This organization has no datasets associated to it') }}

{% endif %} {% endblock %}
{{ c.page.pager() }} {% endblock %}