From 0ff630b8bd66c8f6e97de25a32bc18f79e72d1b0 Mon Sep 17 00:00:00 2001 From: fabianofranz Date: Wed, 17 Sep 2014 13:21:51 -0300 Subject: [PATCH] Parenthesis in unread-counter is now on CSS --- src/main/app/js/directives.js | 4 ++-- src/main/app/sass/components/_subscription-list.scss | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/app/js/directives.js b/src/main/app/js/directives.js index a75871ce..463877c5 100644 --- a/src/main/app/js/directives.js +++ b/src/main/app/js/directives.js @@ -193,7 +193,7 @@ module.directive('category', [function() { }); var label = ''; if (count > 0) { - label = count; + label += count; } return label; }; @@ -201,7 +201,7 @@ module.directive('category', [function() { $scope.feedCountLabel = function(feed) { var label = ''; if (feed.unread > 0) { - label = feed.unread; + label += feed.unread; } return label; }; diff --git a/src/main/app/sass/components/_subscription-list.scss b/src/main/app/sass/components/_subscription-list.scss index 49283a0c..92df570d 100644 --- a/src/main/app/sass/components/_subscription-list.scss +++ b/src/main/app/sass/components/_subscription-list.scss @@ -101,6 +101,14 @@ font-size: 11px; } +.css-treeview .unread ~ .unread-counter::before { + content: '('; +} + +.css-treeview .unread ~ .unread-counter::after { + content: ')'; +} + .css-treeview a { cursor: pointer; color: black;