{% extends base_template %} {% load article_tags %} {% load base_tags %} {% load bootstrap_pagination_tags %} {% load search_tags %} {% block title %}{% spaceless %} {% if MODULE_ARTICLES_LABEL_PLURAL %} {% blocktrans %}{{ MODULE_ARTICLES_LABEL_PLURAL }} List{% endblocktrans %} {% else %} {% trans "Articles List" %} {% endif %} - {{ block.super }} {% endspaceless %}{% endblock %} {% block meta_canonical_url %}{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block content_classes %}{{ block.super }} t-search-view{% endblock %} {% block content %} {% autopaginate articles num_per_page %} {% article_search %} {% with obj_count=paginator.count pluralize=paginator.count|pluralize %} {% if MODULE_ARTICLES_LABEL and MODULE_ARTICLES_LABEL_PLURAL %} {% if obj_count == 1 %} {% blocktrans %}{{ obj_count }} {{ MODULE_ARTICLES_LABEL }} Found{% endblocktrans %} {% else %} {% blocktrans %}{{ obj_count }} {{ MODULE_ARTICLES_LABEL_PLURAL }} Found{% endblocktrans %} {% endif %} {% else %} {% blocktrans %}{{ obj_count }} Article{{ pluralize }} Found{% endblocktrans %} {% endif %} {% endwith %}

{% if MODULE_ARTICLES_GRIDVIEW_FOR_SEARCH %} {% for article in articles %} {% with article.category_set as article_cat %} {% endwith %} {% endfor %}
{% trans "Date" %} {% trans "Title" %} {% trans "Category" %} {% trans "Subcategory" %} {% trans "Group" %}
{{ article.release_dt|date }} {{ article.headline }} {% if user.profile.is_superuser %}    {% endif %} {% if article_cat.category %} {{ article_cat.category }} {% endif %} {% if article_cat.sub_category %} {{ article_cat.sub_category }} {% endif %} {{ article.group }}
{% else %}
{% for article in articles %} {% search_result article %} {% empty %} {% if user.profile.is_superuser %}

{% if MODULE_ARTICLES_LABEL %} {% blocktrans %} Add a New {{ MODULE_ARTICLES_LABEL }} {% endblocktrans %} {% else %} {% trans "Add a New Article" %} {% endif %}

{% endif %} {% endfor %}
{% endif %} {% paginate %} {% endblock %} {% block extra_body %} {{ block.super }} {% endblock %}