From 6e30af755cff7dce37b92740251af42353473a45 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 7 Dec 2018 22:05:39 +0300 Subject: [PATCH] viewfeed: bring back comments prompt --- js/Headlines.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/js/Headlines.js b/js/Headlines.js index 78c9651cb..dcb8bdb2d 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -270,6 +270,18 @@ define(["dojo/_base/declare"], function (declare) { ${__('Originally from:')} ${hl.orig_feed[0]} ` : ""; + let comments = ""; + + if (hl.comments) { + let comments_msg = __("comments"); + + if (hl.num_comments > 0) { + comments_msg = hl.num_comments + " " + ngettext("comment", "comments", hl.num_comments) + } + + comments = `(${comments_msg})`; + } + row = `
@@ -320,6 +332,7 @@ define(["dojo/_base/declare"], function (declare) { ${hl.tags_str} (+) + ${comments}
${hl.buttons}