<div class="ui right tiny pagination menu">
    {% if items.has_previous %}
    <a class="item"
       title="prva"
       href="{% url 'archives' category 1 %}">
    {% else %}
    <a class="disabled item">
    {% endif %}
    <i class="double left angle icon"></i></a>

    {% if items.has_previous %}
    <a class="item"
       title="prejšnja"
       href="{% url 'archives' category items.previous_page_number %}">
    {% else %}
    <a class="disabled item">
    {% endif %}
    <i class="left angle icon"></i></a>

    <a class="active item">
        stran {{ items.number }} od {{ items.paginator.num_pages }}
    </a>

    {% if items.has_next %}
    <a class="item"
       title="naslednja"
       href="{% url 'archives' category items.next_page_number %}">
    {% else %}
    <a class="disabled item">
    {% endif %}
    <i class="angle right icon"></i></a>

    {% if items.has_next %}
    <a class="item"
       title="zadnja"
       href="{% url 'archives' category items.paginator.num_pages %}">
    {% else %}
    <a class="disabled item">
    {% endif %}
    <i class="angle double right icon"></i></a>
</div>
