bgneal@81: """ bgneal@81: URLs for the forums application. bgneal@81: """ bgneal@1028: from django.conf.urls import url bgneal@81: bgneal@1028: import forums.views.attachments as attachments bgneal@1028: import forums.views.favorites as favorites bgneal@1028: import forums.views.main as main bgneal@1028: import forums.views.spam as spam bgneal@1028: import forums.views.subscriptions as subscriptions bgneal@83: bgneal@232: bgneal@1028: urlpatterns = [ bgneal@1028: url(r'^$', main.index, name='forums-index'), bgneal@1028: url(r'^catchup/$', main.catchup_all, name='forums-catchup_all'), bgneal@1028: url(r'^new-topic-success/(?P\d+)$', main.new_topic_thanks, name='forums-new_topic_thanks'), bgneal@1028: url(r'^topic/(?P\d+)/$', main.topic_index, name='forums-topic_index'), bgneal@1028: url(r'^topic/(?P\d+)/unread/$', main.topic_unread, name='forums-topic_unread'), bgneal@1028: url(r'^topic/(?P\d+)/latest/$', main.topic_latest, name='forums-topic_latest'), bgneal@1028: url(r'^topic/active/(\d+)/$', main.active_topics, name='forums-active_topics'), bgneal@1028: url(r'^delete-post/$', main.delete_post, name='forums-delete_post'), bgneal@1028: url(r'^edit/(?P\d+)/$', main.edit_post, name='forums-edit_post'), bgneal@1028: url(r'^flag-post/$', main.flag_post, name='forums-flag_post'), bgneal@1028: url(r'^forum/(?P[\w\d-]+)/$', main.forum_index, name='forums-forum_index'), bgneal@1028: url(r'^forum/(?P[\w\d-]+)/catchup/$', main.forum_catchup, name='forums-catchup'), bgneal@1028: url(r'^forum/(?P[\w\d-]+)/new-topic/$', main.new_topic, name='forums-new_topic'), bgneal@1028: url(r'^mod/forum/(?P[\w\d-]+)/$', main.mod_forum, name='forums-mod_forum'), bgneal@1028: url(r'^mod/topic/delete/(\d+)/$', main.mod_topic_delete, name='forums-mod_topic_delete'), bgneal@1028: url(r'^mod/topic/lock/(\d+)/$', main.mod_topic_lock, name='forums-mod_topic_lock'), bgneal@1028: url(r'^mod/topic/move/(\d+)/$', main.mod_topic_move, name='forums-mod_topic_move'), bgneal@1028: url(r'^mod/topic/split/(\d+)/$', main.mod_topic_split, name='forums-mod_topic_split'), bgneal@1028: url(r'^mod/topic/stick/(\d+)/$', main.mod_topic_stick, name='forums-mod_topic_stick'), bgneal@1028: url(r'^my-posts/$', main.my_posts, name='forums-my_posts'), bgneal@1028: url(r'^post/(\d+)/$', main.goto_post, name='forums-goto_post'), bgneal@1028: url(r'^post/ip/(\d+)/$', main.post_ip_info, name='forums-post_ip_info'), bgneal@1028: url(r'^post/new/(?P\d+)/$', main.new_post, name='forums-new_post'), bgneal@1028: url(r'^posts/(?P[\w.@+-]{1,30})/$', main.posts_for_user, name='forums-posts_for_user'), bgneal@1028: url(r'^quick-reply/$', main.quick_reply_ajax, name='forums-quick_reply'), bgneal@1028: url(r'^unanswered/$', main.unanswered_topics, name='forums-unanswered_topics'), bgneal@1028: url(r'^unread/$', main.unread_topics, name='forums-unread_topics'), bgneal@212: bgneal@1028: url(r'^favorite/(\d+)/$', favorites.favorite_topic, name='forums-favorite_topic'), bgneal@1028: url(r'^favorites/$', favorites.manage_favorites, name='forums-manage_favorites'), bgneal@1028: url(r'^favorites/(\d+)/$', favorites.favorites_status, name='forums-favorites_status'), bgneal@1028: url(r'^unfavorite/(\d+)/$', favorites.unfavorite_topic, name='forums-unfavorite_topic'), bgneal@285: bgneal@1028: url(r'^subscribe/(\d+)/$', subscriptions.subscribe_topic, name='forums-subscribe_topic'), bgneal@1028: url(r'^subscriptions/$', subscriptions.manage_subscriptions, name='forums-manage_subscriptions'), bgneal@1028: url(r'^subscriptions/(\d+)/$', subscriptions.subscription_status, name='forums-subscription_status'), bgneal@1028: url(r'^unsubscribe/(\d+)/$', subscriptions.unsubscribe_topic, name='forums-unsubscribe_topic'), bgneal@1028: bgneal@1028: url(r'^spammer/(\d+)/$', spam.spammer, name='forums-spammer'), bgneal@1028: url(r'^spammer/nailed/(\d+)/$', spam.spammer_nailed, name='forums-spammer_nailed'), bgneal@1028: url(r'^stranger/(\d+)/$', spam.stranger, name='forums-stranger'), bgneal@1028: bgneal@1028: url(r'^fetch_attachments/$', attachments.fetch_attachments, name='forums-fetch_attachments'), bgneal@1028: ]