]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/actions/node.py
Adds a new function in the profile menu for admins to suspend users, indefinetly...
[osqa.git] / forum / actions / node.py
index f5aad160ec6535f835478a26ed4d7704cd637f54..dbbb6589107e1a11566da5f25a6c58f3e7cae2da 100644 (file)
@@ -42,7 +42,7 @@ class AnswerAction(NodeEditAction):
 \r
     def describe(self, viewer=None):\r
         question = self.node.parent\r
-        return _("%(user)s answered %(asker)s %(question)s") % {\r
+        return _("%(user)s answered %(asker)s on %(question)s") % {\r
             'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)),\r
             'asker': self.hyperlink(question.author.get_profile_url(), self.friendly_username(viewer, question.author)),\r
             'question': self.hyperlink(self.node.get_absolute_url(), question.title)\r
@@ -136,6 +136,7 @@ class CloseAction(ActionProxy):
     def process_action(self):\r
         self.node.marked = True\r
         self.node.nstate.closed = self\r
+        self.node.last_edited = self\r
         self.node.update_last_activity(self.user, save=True)\r
 \r
     def cancel_action(self):\r
@@ -178,16 +179,16 @@ class WikifyAction(ActionProxy):
     verb = _("wikified")\r
 \r
     def process_action(self):\r
-        self.node.nstate.wiky = self\r
+        self.node.nstate.wiki = self\r
         self.node.last_edited = self\r
         self.node.update_last_activity(self.user, save=True)\r
 \r
     def cancel_action(self):\r
-        self.node.nstate.wiky = None\r
+        self.node.nstate.wiki = None\r
         self.node.update_last_activity(self.user, save=True)\r
 \r
     def describe(self, viewer=None):\r
-        return _("%(user)s marked %(node)s as community wiky.") % {\r
+        return _("%(user)s marked %(node)s as community wiki.") % {\r
             'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)),\r
             'node': self.describe_node(viewer, self.node),\r
         }\r