From 2fae27d582284ac714589f4c4051eb8cbbb7a396 Mon Sep 17 00:00:00 2001 From: Mike Chen Date: Thu, 9 Aug 2012 12:05:19 -0400 Subject: [PATCH] temporarily disable trending and active if no such data is passed to template. --- .../discussion/_recent_active_posts.html | 12 +++++++----- lms/templates/discussion/_trending_tags.html | 17 +++++++++-------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/lms/templates/discussion/_recent_active_posts.html b/lms/templates/discussion/_recent_active_posts.html index 6a476f3c14..0e087b5eca 100644 --- a/lms/templates/discussion/_recent_active_posts.html +++ b/lms/templates/discussion/_recent_active_posts.html @@ -2,8 +2,10 @@
Recent Activity:
-
- % for thread in recent_active_threads: - ${thread['title']} - % endfor -
+% if recent_active_threads: +
+ % for thread in recent_active_threads: + ${thread['title']} + % endfor +
+% endif \ No newline at end of file diff --git a/lms/templates/discussion/_trending_tags.html b/lms/templates/discussion/_trending_tags.html index 1460cb5888..9cc97c7921 100644 --- a/lms/templates/discussion/_trending_tags.html +++ b/lms/templates/discussion/_trending_tags.html @@ -1,11 +1,12 @@