mirror of https://github.com/zulip/zulip.git
Rename subject_count class to topic-unread-count.
This commit is contained in:
parent
72b8200b0b
commit
7c1711179c
|
@ -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:
|
||||
// <div class="subject_count {{#if is_zero}}zero_count{{/if}}">
|
||||
// <div class="topic-unread-count {{#if is_zero}}zero_count{{/if}}">
|
||||
// <div class="value">{{unread}}</div>
|
||||
// </div>
|
||||
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);
|
||||
};
|
||||
|
|
|
@ -148,7 +148,7 @@ li.hidden-filter {
|
|||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.subject_count {
|
||||
.topic-unread-count {
|
||||
display: block;
|
||||
position: absolute;
|
||||
line-height: 1em;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<a href='{{url}}' class="topic-name">
|
||||
{{topic_name}}
|
||||
</a>
|
||||
<div class="subject_count {{#if is_zero}}zero_count{{/if}}">
|
||||
<div class="topic-unread-count {{#if is_zero}}zero_count{{/if}}">
|
||||
<div class="value">{{unread}}</div>
|
||||
</div>
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue