bgneal@81
|
1 """
|
bgneal@81
|
2 URLs for the forums application.
|
bgneal@81
|
3 """
|
bgneal@81
|
4 from django.conf.urls.defaults import *
|
bgneal@81
|
5
|
bgneal@232
|
6 urlpatterns = patterns('forums.views.main',
|
bgneal@81
|
7 url(r'^$', 'index', name='forums-index'),
|
bgneal@382
|
8 url(r'^catchup/$', 'catchup_all', name='forums-catchup_all'),
|
bgneal@83
|
9 url(r'^new-topic-success/(?P<tid>\d+)$', 'new_topic_thanks', name='forums-new_topic_thanks'),
|
bgneal@82
|
10 url(r'^topic/(?P<id>\d+)/$', 'topic_index', name='forums-topic_index'),
|
bgneal@374
|
11 url(r'^topic/(?P<id>\d+)/unread/$', 'topic_unread', name='forums-topic_unread'),
|
bgneal@409
|
12 url(r'^topic/active/(\d+)/$', 'active_topics', name='forums-active_topics'),
|
bgneal@107
|
13 url(r'^delete-post/$', 'delete_post', name='forums-delete_post'),
|
bgneal@106
|
14 url(r'^edit/(?P<id>\d+)/$', 'edit_post', name='forums-edit_post'),
|
bgneal@98
|
15 url(r'^flag-post/$', 'flag_post', name='forums-flag_post'),
|
bgneal@85
|
16 url(r'^forum/(?P<slug>[\w\d-]+)/$', 'forum_index', name='forums-forum_index'),
|
bgneal@113
|
17 url(r'^forum/(?P<slug>[\w\d-]+)/catchup/$', 'forum_catchup', name='forums-catchup'),
|
bgneal@85
|
18 url(r'^forum/(?P<slug>[\w\d-]+)/new-topic/$', 'new_topic', name='forums-new_topic'),
|
bgneal@111
|
19 url(r'^mod/forum/(?P<slug>[\w\d-]+)/$', 'mod_forum', name='forums-mod_forum'),
|
bgneal@110
|
20 url(r'^mod/topic/delete/(\d+)/$', 'mod_topic_delete', name='forums-mod_topic_delete'),
|
bgneal@109
|
21 url(r'^mod/topic/lock/(\d+)/$', 'mod_topic_lock', name='forums-mod_topic_lock'),
|
bgneal@110
|
22 url(r'^mod/topic/move/(\d+)/$', 'mod_topic_move', name='forums-mod_topic_move'),
|
bgneal@115
|
23 url(r'^mod/topic/split/(\d+)/$', 'mod_topic_split', name='forums-mod_topic_split'),
|
bgneal@109
|
24 url(r'^mod/topic/stick/(\d+)/$', 'mod_topic_stick', name='forums-mod_topic_stick'),
|
bgneal@169
|
25 url(r'^my-posts/$', 'my_posts', name='forums-my_posts'),
|
bgneal@91
|
26 url(r'^post/(\d+)/$', 'goto_post', name='forums-goto_post'),
|
bgneal@216
|
27 url(r'^post/ip/(\d+)/$', 'post_ip_info', name='forums-post_ip_info'),
|
bgneal@108
|
28 url(r'^post/new/(?P<topic_id>\d+)/$', 'new_post', name='forums-new_post'),
|
bgneal@289
|
29 url(r'^posts/(?P<username>[\w.@+-]{1,30})/$', 'posts_for_user', name='forums-posts_for_user'),
|
bgneal@89
|
30 url(r'^quick-reply/$', 'quick_reply_ajax', name='forums-quick_reply'),
|
bgneal@168
|
31 url(r'^unanswered/$', 'unanswered_topics', name='forums-unanswered_topics'),
|
bgneal@167
|
32 url(r'^unread/$', 'unread_topics', name='forums-unread_topics'),
|
bgneal@81
|
33 )
|
bgneal@83
|
34
|
bgneal@232
|
35 urlpatterns += patterns('forums.views.favorites',
|
bgneal@232
|
36 url(r'^favorite/(\d+)/$', 'favorite_topic', name='forums-favorite_topic'),
|
bgneal@232
|
37 url(r'^favorites/$', 'manage_favorites', name='forums-manage_favorites'),
|
bgneal@232
|
38 url(r'^favorites/(\d+)/$', 'favorites_status', name='forums-favorites_status'),
|
bgneal@232
|
39 url(r'^unfavorite/(\d+)/$', 'unfavorite_topic', name='forums-unfavorite_topic'),
|
bgneal@232
|
40 )
|
bgneal@232
|
41
|
bgneal@232
|
42 urlpatterns += patterns('forums.views.subscriptions',
|
bgneal@181
|
43 url(r'^subscribe/(\d+)/$', 'subscribe_topic', name='forums-subscribe_topic'),
|
bgneal@181
|
44 url(r'^subscriptions/$', 'manage_subscriptions', name='forums-manage_subscriptions'),
|
bgneal@181
|
45 url(r'^subscriptions/(\d+)/$', 'subscription_status', name='forums-subscription_status'),
|
bgneal@181
|
46 url(r'^unsubscribe/(\d+)/$', 'unsubscribe_topic', name='forums-unsubscribe_topic'),
|
bgneal@181
|
47 )
|
bgneal@212
|
48
|
bgneal@232
|
49 urlpatterns += patterns('forums.views.spam',
|
bgneal@212
|
50 url(r'^spammer/(\d+)/$', 'spammer', name='forums-spammer'),
|
bgneal@212
|
51 url(r'^spammer/nailed/(\d+)/$', 'spammer_nailed', name='forums-spammer_nailed'),
|
bgneal@215
|
52 url(r'^stranger/(\d+)/$', 'stranger', name='forums-stranger'),
|
bgneal@212
|
53 )
|
bgneal@285
|
54
|
bgneal@285
|
55 urlpatterns += patterns('forums.views.attachments',
|
bgneal@285
|
56 url(r'^fetch_attachments/$', 'fetch_attachments', name='forums-fetch_attachments'),
|
bgneal@285
|
57 )
|