summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar/sidebarArchives.jade
blob: e2f3e395f7715dfb2a049d2ad82b744ca7f9f59a (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
template(name="archivesSidebar")
  +basicTabs(tabs=tabs)

   +tabContent(slug="cards")
    p.quiet
      a.js-restore-all-cards {{_ 'restore-all'}}
      | -
      a.js-delete-all-cards {{_ 'delete-all'}}
    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")
    p.quiet
      a.js-restore-all-lists {{_ 'restore-all'}}
      | -
      a.js-delete-all-lists {{_ 'delete-all'}}
    ul.archived-lists
      each archivedLists
        li.archived-lists-item
          = title
          if currentUser.isBoardMember
            p.quiet
              a.js-restore-list {{_ 'restore'}}
              | -
              a.js-delete-list {{_ 'delete'}}
      else
        li.no-items-message {{_ 'no-archived-lists'}}

   +tabContent(slug="swimlanes")
    p.quiet
      a.js-restore-all-swimlanes {{_ 'restore-all'}}
      | -
      a.js-delete-all-swimlanes {{_ 'delete-all'}}
    ul.archived-lists
      each archivedSwimlanes
        li.archived-lists-item
          = title
          if currentUser.isBoardMember
            p.quiet
              a.js-restore-swimlane {{_ 'restore'}}
              | -
              a.js-delete-swimlane {{_ 'delete'}}
      else
        li.no-items-message {{_ 'no-archived-swimlanes'}}