diff options
author | amadilsons <joao.amado.95@gmail.com> | 2017-10-31 21:10:36 +0000 |
---|---|---|
committer | amadilsons <joao.amado.95@gmail.com> | 2017-10-31 21:10:36 +0000 |
commit | fdd1aad80de336061d576b99d86fc94694131af6 (patch) | |
tree | 9012a3020cb724d37c7466d650912d9c9afc0cae /client/components/lists/listHeader.jade | |
parent | 8bf3f300ad46cf13f17176b0986a72c88191fbb1 (diff) | |
download | wekan-fdd1aad80de336061d576b99d86fc94694131af6.tar.gz wekan-fdd1aad80de336061d576b99d86fc94694131af6.tar.bz2 wekan-fdd1aad80de336061d576b99d86fc94694131af6.zip |
added soft wip limit feature, fixed wipLimit=0 bug (??)
Diffstat (limited to 'client/components/lists/listHeader.jade')
-rw-r--r-- | client/components/lists/listHeader.jade | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade index e1d2f9f4..30ed01f3 100644 --- a/client/components/lists/listHeader.jade +++ b/client/components/lists/listHeader.jade @@ -5,10 +5,12 @@ template(name="listHeader") else h2.list-header-name( class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}") - = title - if isWipLimitEnabled - span - | ({{cards.count}}/#{wipLimit.value}) + = title + if wipLimit.enabled + | ( + span(class="{{#if reachedWipLimit}}highlight{{/if}}") {{cards.count}} + |/#{wipLimit.value}) + if showCardsCountForList cards.count = cards.count span.lowercase @@ -18,7 +20,7 @@ template(name="listHeader") i.list-header-watch-icon.fa.fa-eye div.list-header-menu unless currentUser.isCommentOnly - unless isWipLimitEnabled + if canSeeAddCard a.js-add-card.fa.fa-plus.list-header-plus-icon a.fa.fa-navicon.js-open-list-menu @@ -86,6 +88,10 @@ template(name="setWipLimitPopup") input.wip-limit-value(type="number" value="{{ wipLimitValue }}" min="1" max="99") input.wip-limit-apply(type="submit" value="{{_ 'apply'}}") input.wip-limit-error + p + .soft-wip-limit + .materialCheckBox(class="{{#if isWipLimitSoft}}is-checked{{/if}}") + label Soft Limit template(name="wipLimitErrorPopup") .wip-limit-invalid |