{% 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 %} {{ block.super }}: {{ language.name }} » {% trans "News" %} {% else %} {{ block.super }}: {{ navitems.0.path.language.text }} » {{ navitems.0.path.project.text }} » {% trans "News" %} {% 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 %}{{ success }}
{% endif %}{% trans "No news yet." %}
{% endif %}