diff --git a/r2/r2/templates/searchresultlink.html b/r2/r2/templates/searchresultlink.html index bfa669b30..7b1a99e8b 100644 --- a/r2/r2/templates/searchresultlink.html +++ b/r2/r2/templates/searchresultlink.html @@ -26,6 +26,7 @@ <%namespace file="link.html" import="thumbnail" /> <%! + from r2.lib.template_helpers import format_number from r2.lib.pages import WrappedUser %> @@ -81,8 +82,8 @@ cname=False, _class='search-subreddit-link may-blank', )} - ${thing.score} ${ungettext('point', 'points', thing.score)}, - ${thing.num_comments} ${ungettext('comment', 'comments', thing.num_comments)}, + ${format_number(thing.score)} ${ungettext('point', 'points', thing.score)}, + ${format_number(thing.num_comments)} ${ungettext('comment', 'comments', thing.num_comments)}, submitted ${thing_timestamp(thing, thing.timesince, include_tense=True)} by ${WrappedUser(thing.author, thing.attribs, thing)} diff --git a/r2/r2/templates/searchresultsubreddit.html b/r2/r2/templates/searchresultsubreddit.html index 1d77c9976..819d83076 100644 --- a/r2/r2/templates/searchresultsubreddit.html +++ b/r2/r2/templates/searchresultsubreddit.html @@ -26,7 +26,7 @@ <%namespace file="subscribebutton.html" import="subscribe_button" /> <%! - from r2.lib.template_helpers import search_url + from r2.lib.template_helpers import format_number, search_url from r2.lib.utils import timesince %> @@ -61,7 +61,7 @@ _class='search-subreddit-link may-blank', )} %if not thing.score_hidden: - ${thing._ups} ${ungettext('subscriber', 'subscribers', thing._ups)}, + ${format_number(thing._ups)} ${ungettext('subscriber', 'subscribers', thing._ups)}, %endif ${_("a community for %(time)s") % dict(time=timesince(thing._date))}