{% extends "base.html" %} {% comment %} Oh yeah, I know, this template code is horrible, and actually there are two templates into one. For the future we have to take a different approach for this. {% endcomment %} {% load i18n baseurl cleanhtml %} {% get_current_language as LANGUAGE_CODE %} {% block title %} {% if is_language %} {% blocktrans with block.super as prevtitle and language.name as langname %}{{ prevtitle }}: {{ langname }} » News{% endblocktrans %} {% else %} {% blocktrans with block.super as prevtitle and navitems.0.path.language.text as langname and navitems.0.path.project.text as projectname %}{{ prevtitle }}: {{ langname }} » {{ projectname }} » News{% endblocktrans %} {% endif %} {% endblock %} {% block extra_head %} {% endblock %} {% block bodyclass %} {% if is_language %}languagenews{% else %}tpnews{% endif %} {% endblock %} {% block nav-secondary %} {% if is_language %} {% else %} {% block search %} {% include "language/search.html" %} {% endblock %} {% block breadcrumbs %} {% endblock %} {% endif %} {% endblock %} {% block precontent %} {% if is_language %} {% include "language_menu.html" %} {% else %} {% include "tp_menu.html" %} {% endif %} {% endblock %} {% block content %}
{% if form %}

{{ title }}

{{ success }}

{{ form.as_p }}

{% endif %}

{% trans "Latest News" %} {{ name }}

{% if notices %} {% for notice in notices %}
{{ notice.message|safe|linebreaks|clean }}
{% endfor %} {% else %}

{% trans "No news yet." %}

{% endif %}
{% endblock %} {% if not is_language %} {% block scripts_extra %} {% endblock %} {% endif %}