Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

recent-topics: Mark as read using unread counters in Recent topics.

NerdyLuciferc31ab1bcb5e7
diff --git a/static/styles/recent_topics.css b/static/styles/recent_topics.css
index ee5aab467fd..a44a99acf36 100644
--- a/static/styles/recent_topics.css
+++ b/static/styles/recent_topics.css
@@ -144,6 +144,7 @@
margin-right: 10px;
margin-left: 10px;
align-self: center;
+ background-color: hsl(105, 2%, 50%);
}
.unread_hidden {
diff --git a/static/styles/zulip.css b/static/styles/zulip.css
index 38750ae4d5e..578101f0cba 100644
--- a/static/styles/zulip.css
+++ b/static/styles/zulip.css
@@ -1374,6 +1374,7 @@ td.pointer {
}
.always_visible_topic_edit,
+.on_hover_topic_read,
.on_hover_topic_unmute {
opacity: 0.7;
@@ -1384,7 +1385,6 @@ td.pointer {
}
.on_hover_topic_edit,
-.on_hover_topic_read,
.on_hover_topic_unresolve,
.on_hover_topic_resolve,
.on_hover_topic_mute {
diff --git a/static/templates/recent_topic_row.hbs b/static/templates/recent_topic_row.hbs
index a7a6676cede..10819feced3 100644
--- a/static/templates/recent_topic_row.hbs
+++ b/static/templates/recent_topic_row.hbs
@@ -13,7 +13,7 @@
<a href="{{topic_url}}">{{topic}}</a>
</div>
<div class="right_part">
- <span class="unread_count {{#unless unread_count}}unread_hidden{{/unless}}">{{unread_count}}</span>
+ <span class="unread_count {{#unless unread_count}}unread_hidden{{/unless}} tippy-zulip-tooltip on_hover_topic_read" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mark as read' }}" role="button" tabindex="0" aria-label="{{t 'Mark as read' }}">{{unread_count}}</span>
<div class="recent_topic_actions">
<div class="recent_topics_focusable hidden-for-spectators">
{{#if topic_muted}}
@@ -22,9 +22,6 @@
<i class="fa fa-bell-slash on_hover_topic_mute recipient_bar_icon tippy-zulip-tooltip" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mute topic' }}" role="button" tabindex="0" aria-label="{{t 'Mute topic' }}"></i>
{{/if}}
</div>
- <div class="recent_topics_focusable hidden-for-spectators">
- <i class="fa fa-check-circle on_hover_topic_read recipient_bar_icon tippy-zulip-tooltip" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mark as read' }}" role="button" tabindex="0" aria-label="{{t 'Mark as read' }}"></i>
- </div>
</div>
</div>
</div>