.g-current-assetstores-container
  .g-body-title Assetstores
  if !assetstores.length
    .g-bottom-message.
      You must create an assetstore before you can upload files to the server.
      Select from the options below to create one.
  else
    .g-bottom-message.
      Below is a list of all of the assetstores available to the server. The
      one set as "current" is the one that uploaded files will be written to.
  each assetstore in assetstores
    .g-assetstore-container.panel.panel-default
      .panel-body
        div
          b Name:
          span.g-assetstore-name  #{assetstore.get('name')}
          if assetstore.get('current')
            |  (Current assetstore)
        if assetstore.get('type') == types.FILESYSTEM
          div
            b Type:
            span.g-assetstore-type  Filesystem
          div
            b Root:
            span.g-assetstore-root  #{assetstore.get('root')}
        else if assetstore.get('type') == types.GRIDFS
          div
            b Type:
            span.g-assetstore-type  GridFS
          div
            b Database Name:
            span.g-assetstore-root  #{assetstore.get('db')}
        else if assetstore.get('type') == types.S3
          div
            b Type:
            span.g-assetstore-type  S3

        div
          b Capacity:
          span.g-assetstore-capacity  #{assetstore.capacityString()}
        if assetstore.capacityKnown()
          .g-assetstore-capacity-chart(cid="#{assetstore.cid}")

        .g-assetstore-buttons
          button.g-edit-assetstore.btn.btn-sm.btn-default(
              cid="#{assetstore.cid}") Edit
          button.g-delete-assetstore.btn.btn-sm.btn-danger(
              cid="#{assetstore.cid}") Delete

          if !assetstore.get('current')
            button.g-set-current.btn.btn-small.btn-primary(
              cid="#{assetstore.cid}") Set as current


#g-new-assetstore-container
