Skip to content

Commit

Permalink
fixed a bug in remove reply button
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Mar 2, 2012
1 parent 77b1d2b commit fbe1c02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/handlers/article.py
Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fbe1c02

Please sign in to comment.