Mercurial > libervia-web
comparison browser_side/panels.py @ 366:39ae5bf92786
browser_side: allow one blogger to moderate the comments made on his own blog messages.
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 21 Feb 2014 18:44:47 +0100 |
parents | a74a2dfbe4f5 |
children | 30d03d9f07e4 |
comparison
equal
deleted
inserted
replaced
365:a74a2dfbe4f5 | 366:39ae5bf92786 |
---|---|
450 label.setTitle(title) | 450 label.setTitle(title) |
451 label.addClickListener(self) | 451 label.addClickListener(self) |
452 self.entry_actions.add(label) | 452 self.entry_actions.add(label) |
453 return label | 453 return label |
454 | 454 |
455 if self.author == self._blog_panel.host.whoami.bare: | 455 is_publisher = self.author == self._blog_panel.host.whoami.bare |
456 if is_publisher or str(self.node).endswith(self._blog_panel.host.whoami.bare): | |
456 self.delete_label = addIcon(u"✗", "Delete this message") | 457 self.delete_label = addIcon(u"✗", "Delete this message") |
458 if is_publisher: | |
457 self.update_label = addIcon(u"✍", "Edit this message") | 459 self.update_label = addIcon(u"✍", "Edit this message") |
458 if self.comments: | 460 if self.comments: |
459 self.comment_label = addIcon(u"↶", "Comment this message") | 461 self.comment_label = addIcon(u"↶", "Comment this message") |
460 | 462 |
461 def updateAvatar(self, new_avatar): | 463 def updateAvatar(self, new_avatar): |