]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/actions/node.py
disabling the submit buttons for question and answers.
[osqa.git] / forum / actions / node.py
index d3057a9b2c35e35895a81e4de00b480c1cba2b78..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
@@ -187,7 +188,7 @@ class WikifyAction(ActionProxy):
         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