{% extends "spider_base/uc_base.html" %} {% load i18n spider_base spider_rdf %} {% block title %}{% blocktrans trimmed %} Delete User Components and Contents {% endblocktrans %}{% endblock %} {% block content %}
{# index is redirected in view #} {% trans 'Back' %}

{% blocktrans trimmed %} Delete Components and Contents: {% endblocktrans %}

{% for uc_name, uc_item in hierarchy.items %} {% for content_id, content_item in uc_item.contents.items %} {% empty %} {% endfor %} {% empty %} {# should never happen, but prepare for anything #} {% endfor %}
{% trans 'Name' %}: {% trans 'Delete' %}: {% trans 'Reset' %}:
{{uc_item.ob}} {% literalize uc_item.deletion_date as del_date %} {% literalize uc_item.deletion_active as del_active %} {% if uc_item.ob.is_index %} {% blocktrans %}Protected{% endblocktrans %} {% elif uc_item.deletion_active %} {% blocktrans with deletion_date=uc_item.deletion_date %}Deletion at {{deletion_date}} complete{% endblocktrans %} {% elif uc_item.deletion_date <= now %} {% blocktrans %}Delete now{% endblocktrans %} {% else %} {% blocktrans with deletion_date=uc_item.deletion_date %}Delete at {{deletion_date}}{% endblocktrans %} {% endif %}
{{ content_item.ob }}({{ content_item.ob.ctype }}) {% literalize content_item.deletion_date as del_date %} {% literalize content_item.deletion_active as del_active %} {% if content_item.deletion_active %} {% blocktrans with deletion_date=content_item.deletion_date %}Deletion at {{deletion_date}} complete{% endblocktrans %} {% elif content_item.deletion_date <= now %} {% blocktrans %}Delete now{% endblocktrans %} {% else %} {% blocktrans with deletion_date=content_item.deletion_date %}Delete at {{deletion_date}}{% endblocktrans %} {% endif %}
{% endblock %}