mirror of https://github.com/zulip/zulip.git
recent_topics: Rename count_senders for clarity.
This commit is contained in:
parent
0eda671299
commit
d7d5bc208c
|
@ -262,7 +262,7 @@ function generate_topic_data(topic_info_array) {
|
|||
|
||||
selectors.push(topic_selector);
|
||||
data.push({
|
||||
count_senders: 0,
|
||||
other_senders_count: 0,
|
||||
invite_only: false,
|
||||
is_web_public: true,
|
||||
last_msg_time: 'Just now',
|
||||
|
|
|
@ -116,7 +116,7 @@ function format_topic(topic_data) {
|
|||
last_msg_time: last_msg_time,
|
||||
topic_url: hash_util.by_stream_topic_uri(stream_id, topic),
|
||||
senders: senders_info,
|
||||
count_senders: Math.max(0, all_senders.length - MAX_AVATAR),
|
||||
other_senders_count: Math.max(0, all_senders.length - MAX_AVATAR),
|
||||
muted: muted,
|
||||
topic_muted: topic_muted,
|
||||
participated: topic_data.participated,
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
</td>
|
||||
<td class='recent_topic_users'>
|
||||
<ul class="recent_avatars">
|
||||
{{#if count_senders}}
|
||||
{{#if other_senders_count}}
|
||||
<li class="recent_avatars_item">
|
||||
<span class="recent_avatars_others">+{{count_senders}}</span>
|
||||
<span class="recent_avatars_others">+{{other_senders_count}}</span>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#each senders}}
|
||||
|
|
Loading…
Reference in New Issue