summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Orlicky <orlickymario@gmail.com>2016-11-13 20:48:24 +0100
committerMario Orlicky <orlickymario@gmail.com>2016-11-13 20:48:24 +0100
commit5968792ad2d94291721fd0f95df6d66541150442 (patch)
treeb149fd5647b915a413291297faa1b083473c7188
parent5a23c962d2d2c8a4ef3f30a3b0965039808924e8 (diff)
downloadwekan-5968792ad2d94291721fd0f95df6d66541150442.tar.gz
wekan-5968792ad2d94291721fd0f95df6d66541150442.tar.bz2
wekan-5968792ad2d94291721fd0f95df6d66541150442.zip
added buttons to support filtering by empty labels and members
-rw-r--r--client/components/sidebar/sidebarFilters.jade12
-rwxr-xr-xi18n/en.i18n.json2
2 files changed, 14 insertions, 0 deletions
diff --git a/client/components/sidebar/sidebarFilters.jade b/client/components/sidebar/sidebarFilters.jade
index 2b326493..0a7fbfb0 100644
--- a/client/components/sidebar/sidebarFilters.jade
+++ b/client/components/sidebar/sidebarFilters.jade
@@ -5,6 +5,12 @@
template(name="filterSidebar")
ul.sidebar-list
+ li(class="{{#if Filter.labelIds.isSelected undefined}}active{{/if}}")
+ a.name.js-toggle-label-filter
+ span.sidebar-list-item-description
+ <span class="username">{{_ 'filter-no-label'}}</span>
+ if Filter.labelIds.isSelected undefined
+ i.fa.fa-check
each currentBoard.labels
li
a.name.js-toggle-label-filter
@@ -18,6 +24,12 @@ template(name="filterSidebar")
i.fa.fa-check
hr
ul.sidebar-list
+ li(class="{{#if Filter.members.isSelected undefined}}active{{/if}}")
+ a.name.js-toggle-member-filter
+ span.sidebar-list-item-description
+ <span class="username">{{_ 'filter-no-member'}}</span>
+ if Filter.members.isSelected undefined
+ i.fa.fa-check
each currentBoard.activeMembers
with getUser userId
li(class="{{#if Filter.members.isSelected _id}}active{{/if}}")
diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json
index f9cf7e82..c92d6a71 100755
--- a/i18n/en.i18n.json
+++ b/i18n/en.i18n.json
@@ -173,6 +173,8 @@
"filter": "Filter",
"filter-cards": "Filter Cards",
"filter-clear": "Clear filter",
+ "filter-no-label": "No label",
+ "filter-no-member": "No member",
"filter-on": "Filter is on",
"filter-on-desc": "You are filtering cards on this board. Click here to edit filter.",
"filter-to-selection": "Filter to selection",