extends ../layouts/main
block content

  include components/list-item

  .uk-margin
    div(uk-grid)
      .uk-width-expand
        h1(style="line-height: 1em;").uk-margin-remove.uk-text-truncate Core Nodes
      .uk-width-auto
        a(href="/admin/core-node/connect").uk-button.uk-button-primary.uk-border-rounded Connect Core

  p You can register with one or more Core nodes to exchange information with those nodes.

  if Array.isArray(coreNodes) && (coreNodes.length > 0)
    ul.uk-list
      each node in coreNodes
        a(href=`/admin/core-node/${node._id}`).uk-display-block.uk-link-reset
          +renderCoreNodeListItem(node)
  else
    p There are no registered core nodes.