From fbe1c02bc48cee9e3d0dcacdd940b8cfe2ab1913 Mon Sep 17 00:00:00 2001 From: Bruno ROcha Date: Fri, 2 Mar 2012 18:28:31 -0300 Subject: [PATCH] fixed a bug in remove reply button --- modules/handlers/article.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/handlers/article.py b/modules/handlers/article.py index 057de55..df544a8 100644 --- a/modules/handlers/article.py +++ b/modules/handlers/article.py @@ -90,7 +90,7 @@ def showcomment(self): _class="link_to_user", **{"_data-id": comment.user_id} ), - XML(" "), + XML("  "), A( self.db.pdate(comment.commenttime), _href=self.CURL('article', 'showcomment', args=comment.id, extension=False)) @@ -401,6 +401,8 @@ def remove_reply_button(self, reply): user_id = self.db.auth.user_id if (user_id == reply.user_id) or ('admin' in self.db.auth.user_groups) or (user_id == self.context.article.author): return TAG.I(_class="icon-remove remove-reply", **{"_data-url": URL('article', 'removereply', args="reply_%s" % reply.id)}) + else: + return "" def editcomment(self): user = self.session.auth.user if self.session.auth else None