extends ../layouts/main
block content

  include components/list-item

  section.uk-section.uk-section-default.uk-section-small
    .uk-container.uk-container-expand

      if Array.isArray(categories) && (categories.length > 0)
        div(uk-grid).uk-flex-center.uk-grid-small
          each category in categories
            .uk-width-auto
              .uk-width-medium
                .uk-margin
                  +renderCategoryListItem(category)
      else
        h4.uk-text-center There are no categories or the system is down for maintenance.