summaryrefslogtreecommitdiffstats
path: root/client/components/rules/rulesList.jade
blob: b8d49a667a992959173dd87dd3d402d5e863b0c3 (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
template(name="rulesList")
  .rules
    h2
      i.fa.fa-magic
      | {{{_ 'r-board-rules' }}}

    ul.rules-list
      each rules
        li.rules-lists-item
          p 
            = title
          div.rules-btns-group
            button.js-goto-details
              i.fa.fa-eye
              | {{{_ 'r-view-rule'}}}
            if currentUser.isAdmin
              button.js-delete-rule
                i.fa.fa-trash-o
                | {{{_ 'r-delete-rule'}}}
            else if currentUser.isBoardAdmin
              button.js-delete-rule
                i.fa.fa-trash-o
                | {{{_ 'r-delete-rule'}}}
      else
        li.no-items-message {{{_ 'r-no-rules' }}}
    if currentUser.isAdmin
      div.rules-add
        button.js-goto-trigger
          i.fa.fa-plus
          | {{{_ 'r-add-rule'}}}
        input(type=text,placeholder="{{{_ 'r-new-rule-name' }}}",id="ruleTitle")
    else if currentUser.isBoardAdmin
      div.rules-add
        button.js-goto-trigger
          i.fa.fa-plus
          | {{{_ 'r-add-rule'}}}
        input(type=text,placeholder="{{{_ 'r-new-rule-name' }}}",id="ruleTitle")