X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/c6c168511f18d8984901b2c828a47310a2d54d64..745f67c37acdb9574c5297004adde2b9a7da5fdb:/forum/urls.py diff --git a/forum/urls.py b/forum/urls.py index 2817521..fc64e28 100644 --- a/forum/urls.py +++ b/forum/urls.py @@ -83,10 +83,11 @@ urlpatterns += patterns('', name="delete_comment"), url(r'^%s(?P\d+)/$' % _('convert_comment/'), app.commands.convert_comment_to_answer, name="convert_comment"), - url(r'^%s(?P\d+)/$' % _('accept_answer/'), app.commands.accept_answer, name="accept_answer") - , - url(r'^%s(?P\d+)/$' % _('mark_favorite/'), app.commands.mark_favorite, name="mark_favorite") - , + url(r'^%s(?P\d+)/$' % _('accept_answer/'), app.commands.accept_answer, name="accept_answer"), + url(r'^%s(?P\d+)/$' % _('answer_link/'), app.commands.answer_permanent_link, name="answer_permanent_link"), + url(r'^%s(?P\d+)/$' % _('mark_favorite/'), app.commands.mark_favorite, name="mark_favorite"), + url(r'^%s%s(?P\d+)/%s(?P\d+)/$' % (_('award_points/'), _('user/'), _('answer/')), app.commands.award_points, name="award_points"), + url(r'^%s(?P\d+)/' % _('flag/'), app.commands.flag_post, name='flag_post'), url(r'^%s(?P\d+)/' % _('delete/'), app.commands.delete_post, name='delete_post'), url(r'^%s(?P\d+)/(?P\d+)?$' % _('subscribe/'), app.commands.subscribe, name="subscribe"), @@ -215,5 +216,6 @@ urlpatterns += patterns('', url(r'^feeds/rss[/]?$', app.readers.feed, name="latest_questions_feed"), - url(r'^(?P.+)$', app.meta.page, name="static_page"), + #url(r'^.+$', app.meta.page, name="static_page"), ) +