From 7c1711179c80c5595420e19f7a9df741504e6d2a Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 11 Nov 2016 16:14:34 -0800 Subject: [PATCH] Rename subject_count class to topic-unread-count. --- static/js/topic_list.js | 4 ++-- static/styles/left-sidebar.css | 2 +- static/templates/topic_list_item.handlebars | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/topic_list.js b/static/js/topic_list.js index 1c69abcdac..421af6431c 100644 --- a/static/js/topic_list.js +++ b/static/js/topic_list.js @@ -19,7 +19,7 @@ exports.remove_expanded_topics = function () { function update_unread_count(unread_count_elem, count) { // unread_count_elem is a jquery element...we expect DOM // to look like this: - //
+ //
//
{{unread}}
//
var value_span = unread_count_elem.find('.value'); @@ -129,7 +129,7 @@ exports.build_widget = function (parent_elem, stream, active_topic, max_topics) return; } var topic_li = self.topic_items.get(topic); - var unread_count_elem = topic_li.find('.subject_count').expectOne(); + var unread_count_elem = topic_li.find('.topic-unread-count').expectOne(); update_unread_count(unread_count_elem, count); }; diff --git a/static/styles/left-sidebar.css b/static/styles/left-sidebar.css index 1abfeadb55..27fccd5a15 100644 --- a/static/styles/left-sidebar.css +++ b/static/styles/left-sidebar.css @@ -148,7 +148,7 @@ li.hidden-filter { text-overflow: ellipsis; } -.subject_count { +.topic-unread-count { display: block; position: absolute; line-height: 1em; diff --git a/static/templates/topic_list_item.handlebars b/static/templates/topic_list_item.handlebars index 741bd26b84..5bd48993d5 100644 --- a/static/templates/topic_list_item.handlebars +++ b/static/templates/topic_list_item.handlebars @@ -3,7 +3,7 @@ {{topic_name}} -
+
{{unread}}