<%
# Copyright (C) 2012 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
%>

<div class="new-and-total-badge">
  <span class="new-items"
        aria-hidden="true"
        data-tooltip
        data-bind='{"title":"unreadText", "text":"unreadCount"}'
        title="<%= t('unread_count_tooltip', {
                     :zero => 'No unread replies.',
                     :one => '1 unread reply.',
                     :other => '%{count} unread replies.'
                    }, :count => unread_count) %>"><%= n(unread_count) if unread_count > 0 %></span>
  <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>
  <span class="total-items"
        aria-hidden="true"
        data-tooltip
        title="<%= t('reply_count_tooltip', {
                     :zero => 'No replies.',
                     :one => '1 reply.',
                     :other => '%{count} replies.'
                    }, :count => reply_count) %>"><%= n(reply_count) if reply_count > 0 %></span>
  <span class="screenreader-only">
    <%= t('reply_count_tooltip', {
           :zero => 'No replies.',
           :one => '1 reply.',
           :other => '%{count} replies.'
          }, :count => reply_count) %>
  </span>
</div>
