{% extends 'corbo/base.html' %} {% load i18n %} {% block appbar %}

{% trans "Categories" %}

{% if extra_actions %} {% endif %} {% trans 'New category' %} {% endblock %} {% block content %}
{% if object_list %} {% if is_paginated %}

{% if page_obj.number > 1 %} {% if page_obj.previous_page_number != 1 %} 1 ... {% endif %} {% endif %} {% if page_obj.has_previous %} {{ page_obj.previous_page_number }} {% endif %} {{ page_obj.number }} {% if page_obj.has_next %} {{ page_obj.next_page_number }} {% endif %} {% if page_obj.number != page_obj.paginator.num_pages %} {% if page_obj.paginator.num_pages > 1 %} {% if page_obj.next_page_number != page_obj.paginator.num_pages %} ... {{ page_obj.paginator.num_pages }} {% endif %} {% endif %} {% endif %}

{% endif %} {% else %}
{% blocktrans %} There are no categories yet. Click on "New category" button in the top right of the page to add a first one. {% endblocktrans %}
{% endif %}
{% endblock %}