From 57a4741e9e348df03df5cd49697b41054904a03e Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Fri, 26 Jul 2013 15:49:03 -0400 Subject: [PATCH] show message if there are not recent topics --- public/templates/recent.tpl | 9 ++++----- src/categories.js | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/templates/recent.tpl b/public/templates/recent.tpl index 2b3416a9dd..11efe8861a 100644 --- a/public/templates/recent.tpl +++ b/public/templates/recent.tpl @@ -7,15 +7,14 @@ -
- There are no topics in this category.
- Why don't you try posting one? -
-
+
+ There are no recent topics. +
+
diff --git a/src/categories.js b/src/categories.js index acbe8441b6..ec65e1b525 100644 --- a/src/categories.js +++ b/src/categories.js @@ -116,6 +116,7 @@ var RDB = require('./redis.js'), }; if (!tids || !tids.length) { + latestTopics.no_topics_message = 'show'; callback(latestTopics); return; }