{% extends "page.html" %} {% import "inventory/inventory_util_jinja.html" as m with context %} {% block title %}{{c.group.display_name}}{% endblock %}

{% if h.check_access('group_update', {'id':c.group.id}) %} Manage Unpublished Datasets Edit {% endif %} {{c.group.display_name}} {% if c.group_extras.get('abbreviation') %}  ({{c.group_extras.get('abbreviation')}}) {% endif %}

{% block breadcrumb_content %} {{ h.build_nav('publisher_index', _('Datasets')) }} {{ h.build_nav('publisher_read', c.group['title'], id=c.group['name'] ) }} {{ h.build_nav('unpublished_edit', _('Manage inventory'), id=c.group['name'] ) }} {% endblock %} {% block primary_content_inner %} {% if c.group['state'] != 'active' %}

State: {{c.group['state']}}

{% endif %}
{% if c.description_formatted.strip() %}
{{c.description_formatted}}
{% endif %}

Inventory upload{{h.render_datestamp(c.task.last_updated.isoformat(), format="%d/%m/%Y %H:%M")}}


Status: {{c.task.state}}

{% if c.task.state != 'Started' %}

Errors

{% if not c.task.error %}

No errors.

{% else %}

{% for error in c.task.error %}

{% endfor %}

{% endif %}

Items processed

{% if not c.task.packages %}

No items processed

{% else %} {% for pkg,grp,pub_date,release,action in h.inventory_status(c.task.packages) %} {% endfor %}
Title Description Department Publish Date Release notes Action
{{pkg.title}} {{h.truncate(pkg.notes, length=40, whole_word=True)}} {{grp.title}} {{h.render_db_date(pub_date)}} {{h.truncate(release, length=40, whole_word=True)}} {{action}}
{% endif %}
{% endif %}
{% endblock %} {% block optional_feed %} {% endblock %}