{% extends base %}
{% from 'macro.html' import breadcrumbs with context %}

{% block content %}

<div class="row">
<div class="span8">
{{- breadcrumbs() }}

<ul class="editlog">{% for item, extra in prepare_editlog(edit_log) %}
    <li class="editlog-item" id="edit_log_{{ item.id }}">
        {%- include 'includes/edit_log_item.html' with context -%}
    </li>
{% endfor %}</ul>

{% if page_obj %}
    <div id="stories-pagination" class="pagination center">
        {% if page_obj.has_previous() %}
            <a class="btn" href="{{ url_for(endpoint, page=page_obj.number - 1, **view_args) }}">← Назад</a>
        {% endif %}
        <span class="btn btn-primary">
            {{ page_obj.number }} / {{ page_obj.num_pages }}
        </span>
        {% if page_obj.has_next() %}
            <a class="btn" href="{{ url_for(endpoint, page=page_obj.number + 1, **view_args) }}">Вперед →</a>
        {% endif %}
      </div>
{% endif %}

{{- breadcrumbs() }}
</div>
</div>
{% endblock %}
