canvas-lms/app/views/discussion_topics/_new_and_total_badge.html.erb

27 lines
1.2 KiB
Plaintext
Raw Normal View History

<div class="new-and-total-badge">
<span class="tooltip new-items">
<span class="tooltip_wrap">
<span class="tooltip_text topic_unread_entries_tooltip" data-bind="unreadText"><%= t('unread_count_tooltip', {
:zero => 'No unread replies',
:one => '*1* unread reply',
:other => '%{count} unread replies' },
:count => unread_count) %></span>
</span>
<span class='topic_unread_entries_count' data-bind="unreadCount"><%= unread_count if unread_count > 0 %></span>
</span>
<span class="tooltip total-items">
<span class="tooltip_wrap">
<span class="tooltip_text">
<%= t('reply_count_tooltip', {
:zero => 'No replies',
:one => '1 reply',
:other => '%{count} replies' },
:count => reply_count) %>
</span>
</span>
<span class='topic_reply_count'><%= reply_count if reply_count > 0 %></span>
</span>
</div>