extends ../layouts/main
block content

  div(uk-grid)
    .uk-width-expand
      h1 Newsroom Feeds
    .uk-width-auto
      a(href='/admin/newsroom/create').uk-button.uk-button-primary.uk-border-rounded #[i.fas.fa-plus]#[span.uk-margin-small-left Add Feed]

  if Array.isArray(newsroom.feeds) && (newsroom.feeds.length > 0)
    ul.uk-list.uk-list-divider
      each feed in newsroom.feeds
        li
          a(href=`/admin/newsroom/${feed._id}`)= feed.title
  else
    div There are no feeds.