extends ../layouts/main
block content

  include components/list-item

  div(uk-grid)
    .uk-width-expand
      h1(style="line-height: 1em;").uk-margin-remove Service Nodes
    .uk-width-auto
      a(href='/admin/service-node/connect-queue').uk-button.uk-button-secondary.uk-border-rounded
        span
          i.fas.fa-plug
        span.uk-margin-small-left Connect Queue

  if Array.isArray(serviceNodes) && (serviceNodes.length > 0)
    ul.uk-list.uk-list-divider
      each node in serviceNodes
        li
          a(href=`/admin/service-node/${node._id}`).uk-link-reset
            +renderServiceNodeListItem(node)
  else
    p There are no registered service nodes.