Merge pull request #739 from MITx/feature/ibrahim/unread_count

Properly puluralize comments tooltip and change "unread" to "new".
This commit is contained in:
arjun810
2012-09-20 04:55:59 -07:00

View File

@@ -131,7 +131,7 @@
<a href="${'<%- id %>'}" data-id="${'<%- id %>'}">
<span class="title">${"<%- title %>"}</span>
${"<% if (unread_comments_count > 0) { %>"}
<span class="comments-count unread" data-tooltip="${"<%- unread_comments_count %>"} unread comments">${"<%- comments_count %>"}</span>
<span class="comments-count unread" data-tooltip="${"<%- unread_comments_count %>"} new comment${"<%- unread_comments_count > 1 ? 's' : '' %>"}">${"<%- comments_count %>"}</span>
${"<% } else { %>"}
<span class="comments-count">${"<%- comments_count %>"}</span>
${"<% } %>"}