summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-10-15 00:52:32 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-10-15 00:52:32 +0200
commit15ebfa63c61694e4aa60e0f9c5047f678d6cf0c4 (patch)
tree1e7a7245bb7a9f47548ec2c26e6d13d5010b8e4a /client
parent944a1065d372095e8a0898a4162ca6bb562bab69 (diff)
downloadwekan-15ebfa63c61694e4aa60e0f9c5047f678d6cf0c4.tar.gz
wekan-15ebfa63c61694e4aa60e0f9c5047f678d6cf0c4.tar.bz2
wekan-15ebfa63c61694e4aa60e0f9c5047f678d6cf0c4.zip
Translate the label colors
Diffstat (limited to 'client')
-rw-r--r--client/components/sidebar/sidebarFilters.jade2
-rw-r--r--client/config/blazeHelpers.js4
2 files changed, 5 insertions, 1 deletions
diff --git a/client/components/sidebar/sidebarFilters.jade b/client/components/sidebar/sidebarFilters.jade
index d9275314..ef26ef76 100644
--- a/client/components/sidebar/sidebarFilters.jade
+++ b/client/components/sidebar/sidebarFilters.jade
@@ -13,7 +13,7 @@ template(name="filterSidebar")
if name
= name
else
- span.quiet {{_ "label-default" color}}
+ span.quiet {{_ "label-default" (_ (concat "color-" color))}}
if Filter.labelIds.isSelected _id
i.fa.fa-check
hr
diff --git a/client/config/blazeHelpers.js b/client/config/blazeHelpers.js
index 12990ed7..adf5ef6a 100644
--- a/client/config/blazeHelpers.js
+++ b/client/config/blazeHelpers.js
@@ -13,3 +13,7 @@ Blaze.registerHelper('currentCard', () => {
});
Blaze.registerHelper('getUser', (userId) => Users.findOne(userId));
+
+UI.registerHelper('concat', function (...args) {
+ return Array.prototype.slice.call(args, 0, -1).join('');
+});