{% extends '../layouts/default.html' %}

{% block main %}
<div class="container pb-sm-40">
  <h1>{{ title }}</h1>
</div>
  
{% endblock %}

{% block content %}
  <div class="container pb-sm-40">
      <div class="section-title">
        {% if (sectionGrups.length) %}
    {% for sectionGrup in sectionGrups %}
      {% include 'sectionGrup.html' %}
    {% endfor %}

    {% if (pages > 1) %}
      <ul class="pagination">
        {% autoescape false %}
          {{ createPagination(pages, page) }}
        {% endautoescape %}
      </ul>
    {% endif %}
  {% else %}
    <h4 class="muted">
      No articles.&nbsp;
      <a href="/sectionGrups/new">create one</a>
    </h4>
  {% endif %}
      </div>
    </div>
{% endblock %}
