From 27a01f6c6162d6aee16d6bd2f61acd21a3e88d5f Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Fri, 13 Dec 2013 16:36:29 -0500 Subject: [PATCH] closes #657 --- public/templates/search.tpl | 63 ++++++++++++++++++++++--------------- src/routes/api.js | 4 ++- 2 files changed, 41 insertions(+), 26 deletions(-) diff --git a/public/templates/search.tpl b/public/templates/search.tpl index 9bea91611c..0f2ad27a30 100644 --- a/public/templates/search.tpl +++ b/public/templates/search.tpl @@ -15,41 +15,54 @@ diff --git a/src/routes/api.js b/src/routes/api.js index d1e7da2fb9..45e9514ce8 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -270,7 +270,9 @@ var path = require('path'), show_results: '', search_query: req.params.term, posts: results[0], - topics: results[1] + topics: results[1], + post_matches : results[0].length, + topic_matches : results[1].length }); }); } else {