summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar/sidebarArchives.jade
blob: aa14fc303cc1385118d34402300747bebcf1fa4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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'}}