extends ../layouts/main
block content

  div(uk-grid)
    .uk-width-expand
      h1 Link home
    .uk-width-auto
      a(href="/admin/site-link/create").uk-button.dtp-button-primary.uk-border-rounded
        span
          i.fas.fa-plus
        span.uk-margin-small-left Add Link

  ul.uk-list.uk-list-divider
    each link of links
      li
        a(href=`/admin/site-link/${link._id}`)= link.label