2012-03-24 04:47:02 +08:00
|
|
|
<div class="new-and-total-badge">
|
2012-08-02 00:56:19 +08:00
|
|
|
<span class="new-items"
|
2014-03-14 05:00:33 +08:00
|
|
|
aria-hidden="true"
|
2012-08-02 00:56:19 +08:00
|
|
|
data-tooltip
|
|
|
|
data-bind='{"title":"unreadText", "text":"unreadCount"}'
|
|
|
|
title="<%= t('unread_count_tooltip', {
|
2014-03-14 05:00:33 +08:00
|
|
|
:zero => 'No unread replies.',
|
|
|
|
:one => '1 unread reply.',
|
|
|
|
:other => '%{count} unread replies.'
|
2012-08-02 00:56:19 +08:00
|
|
|
}, :count => unread_count) %>"><%= unread_count if unread_count > 0 %></span>
|
2014-03-14 05:00:33 +08:00
|
|
|
<span class="screenreader-only"
|
|
|
|
data-bind='{"text":"unreadText"}'>
|
|
|
|
<%= t('unread_count_tooltip', {
|
|
|
|
:zero => 'No unread replies.',
|
|
|
|
:one => '1 unread reply.',
|
|
|
|
:other => '%{count} unread replies.'
|
|
|
|
}, :count => unread_count) %>
|
|
|
|
</span>
|
2012-08-02 00:56:19 +08:00
|
|
|
<span class="total-items"
|
2014-03-14 05:00:33 +08:00
|
|
|
aria-hidden="true"
|
2012-08-02 00:56:19 +08:00
|
|
|
data-tooltip
|
|
|
|
title="<%= t('reply_count_tooltip', {
|
2014-03-14 05:00:33 +08:00
|
|
|
:zero => 'No replies.',
|
|
|
|
:one => '1 reply.',
|
|
|
|
:other => '%{count} replies.'
|
2012-08-02 00:56:19 +08:00
|
|
|
}, :count => reply_count) %>"><%= reply_count if reply_count > 0 %></span>
|
2014-03-14 05:00:33 +08:00
|
|
|
<span class="screenreader-only">
|
|
|
|
<%= t('reply_count_tooltip', {
|
|
|
|
:zero => 'No replies.',
|
|
|
|
:one => '1 reply.',
|
|
|
|
:other => '%{count} replies.'
|
|
|
|
}, :count => reply_count) %>
|
|
|
|
</span>
|
2012-03-24 04:47:02 +08:00
|
|
|
</div>
|