Commit 2fae27d5 by Mike Chen

temporarily disable trending and active if no such data is passed to template.

parent b4493344
......@@ -2,8 +2,10 @@
<div class="recent-activity-title">Recent Activity:</div>
<div class="recent-active-posts">
% if recent_active_threads:
<div class="recent-active-posts">
% for thread in recent_active_threads:
<a class="recent-active-post" href="javascript:void(0)">${thread['title']}</a>
% endfor
</div>
</div>
% endif
\ No newline at end of file
<div class="trending-tags">
Trending tags:
% if trending_tags:
% for tag, count in trending_tags:
<div class="trending-tag">
<a class="trending-tag-link" href="javascript:void(0)">${tag}</a>
......@@ -8,4 +8,5 @@ Trending tags:
<span class="trending-tag-count">${count}</span>
</div>
% endfor
% endif
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment