{% extends "newman/ajax_content_base.html" %} {% load newman cache %} {% block breadcrumbs %}{% endblock %} {% block content_toolbar %}{% endblock %} {% block content %} {% cache 300 'nm-hp-cal' user %}
{% if show_calendar %} {# ein Kalendar, bitte #}

{% trans "Calendar" %}

{% comment %} {% endcomment %}
{% endif %} {% endcache %} {% if site_filter_form %}

{% trans "Quick Settings" %}

{# hpbox setup div is handled by JavaScript (Ajax widget -- Filtering by main categories). #}
{% endif %}

{% trans "Report Error" %}

{% cache 300 'nm-hp-search' user %}
{% endcache %}

{% trans "Future placements" %}

{% if not future_placements %}

{% trans 'No future placements available.' %}

{% endif %} {% for p in future_placements %}

{% trans p.publishable.content_type.name %}: {{ p.publishable.title }}

{% trans "Publish from" %}: {{ p.publish_from|date }} {{ p.publish_from|time }} | {% trans "Category" %}: {{ p.category }} | {% trans 'Author' %}: {{ p.publishable.authors.all|join:", " }}

{{ p.publishable.description|striptags|truncatewords:32 }}
{% endfor %}
{% cache 30 'nm-hp-lastlog' user %}

{% trans "Last edited objects" %}

{% newman_log 20 as log_entries %} {% if not log_entries %}

{% trans 'None available' %}

{% else %}
    {% for entry in log_entries %}
  • {% if not entry.is_deletion %} {{ entry.object_repr }} {% else %} {{ entry.object_repr }} {% endif %}

    {% trans entry.content_type.name %} | {{ entry.action_time|date:"Y-m-d H:i" }} {% if user.is_superuser %} | {{ entry.user }} {% endif %}
  • {% endfor %}
{% endif %}
{% endcache %}
{% endblock %} {% block content_js %} {{ block.super }} {% cache 300 'nm-hp-js' %} {% endcache %} {% endblock %}