template(name="archivesSidebar")
  +basicTabs(tabs=tabs)

   +tabContent(slug="cards")
    each archivedCards
      .minicard-wrapper.js-minicard
        +minicard(this)
      if currentUser.isBoardMember
        p.quiet
          a.js-restore-card {{_ 'restore'}}
          | -
          a.js-delete-card {{_ 'delete'}}
        if cardIsInArchivedList
          p.quiet.small ({{_ 'warn-list-archived'}})
    else
      p.no-items-message {{_ 'no-archived-cards'}}

   +tabContent(slug="lists")
    ul.archived-lists
      each archivedLists
        li.archived-lists-item
          if currentUser.isBoardMember
            button.js-restore-list
              i.fa.fa-undo
          = title
      else
        li.no-items-message {{_ 'no-archived-lists'}}

   +tabContent(slug="swimlanes")
    ul.archived-lists
      each archivedSwimlanes
        li.archived-lists-item
          if currentUser.isBoardMember
            button.js-restore-swimlane
              i.fa.fa-undo
          = title
      else
        li.no-items-message {{_ 'no-archived-swimlanes'}}
