From a34e8f75789ce6db37d38c977f452adf7edd391b Mon Sep 17 00:00:00 2001 From: Jeff Cook Date: Mon, 5 Mar 2012 04:19:16 -0700 Subject: [PATCH] Only display descriptions when they contain something --- raggregate/templates/base/full.mak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/raggregate/templates/base/full.mak b/raggregate/templates/base/full.mak index 81b8c1b..186e124 100644 --- a/raggregate/templates/base/full.mak +++ b/raggregate/templates/base/full.mak @@ -60,9 +60,11 @@ <%include file="story_item.mak", args="story_obj = story, vote_dict = story_vote_dict"/> click the title above to proceed to posted article; scroll down for commentary

+ % if story.description != u'':
${story.description | template_filters.render_md,n}
+ % endif ##@TODO: make functionality to determine whether a user is logged in on display a reusable function ## I have vague memories of this but think it's on the server side, need to create a def that can ## be used in the Mako templates to determine this, would be much better that way.