diff rhodecode/config/routing.py @ 3695:45df84d36b44 beta

Implemented preview for comments
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 06 Apr 2013 02:49:42 +0200
parents 77e6e941001f
children 7e3d89d9d3a2
line wrap: on
line diff
--- a/rhodecode/config/routing.py	Fri Apr 05 23:16:21 2013 +0200
+++ b/rhodecode/config/routing.py	Sat Apr 06 02:49:42 2013 +0200
@@ -500,6 +500,11 @@
                 controller='changeset', revision='tip', action='comment',
                 conditions=dict(function=check_repo))
 
+    rmap.connect('changeset_comment_preview',
+                 '/{repo_name:.*?}/changeset/comment/preview',
+                controller='changeset', action='preview_comment',
+                conditions=dict(function=check_repo, method=["POST"]))
+
     rmap.connect('changeset_comment_delete',
                  '/{repo_name:.*?}/changeset/comment/{comment_id}/delete',
                 controller='changeset', action='delete_comment',