{% extends 'speeches/base.html' %} {% load url from future %} {% load i18n %} {% load humanize %} {% load speech_utils %} {% block title %}Home{% endblock %} {% block content %}
{% if paginator.count %}
{% url "speeches:speaker-list" as url_speaker_list %} {% url "speeches:section-list" as url_section_list %} {% if LANGUAGE_CODE == 'en' %} {{ count_speeches|intcomma }} speech{{ count_speeches|pluralize:"es" }}{% if count_speakers %}, by {{ count_speakers|intcomma }} speaker{{ count_speakers|pluralize }}{% endif %}{% if count_sections %}, in {{ count_sections|intcomma }} section{{ count_sections|pluralize }}{% endif %} {% else %} {# Hideously long lines, until blocktrans adds trimmed option in Django 1.7... #} {% blocktrans with n=count_speeches|intcomma count c=count_speeches %}One speech{% plural %}{{ n }} speeches{% endblocktrans %}{% if count_speakers %}; {% blocktrans with n=count_speakers|intcomma count c=count_speakers %}one speaker{% plural %}{{ n }} speakers{% endblocktrans %}{% endif %}{% if count_sections %}; {% blocktrans with n=count_sections|intcomma count c=count_sections %}one section{% plural %}{{ n }} sections{% endblocktrans %}{% endif %} {% endif %} {% block instance_blocks %} {% endblock %} {% else %}
{% url "speeches:speech-add" as url_add_speech %} {% url "speeches:section-add" as url_add_section %}

{% blocktrans %}Nothing has been uploaded yet. Why not add a speech or a section?{% endblocktrans %}

{% endif %}
{% endblock %}