comparison gpp/forums/urls.py @ 374:dd673fae508d

Fixing #156. Making it possible to goto the first unread post in a thread. Made the 'New' icon a link; when displayed on a topic, takes you to the first unread post.
author Brian Neal <bgneal@gmail.com>
date Mon, 07 Mar 2011 01:22:49 +0000
parents 0dd8989abef2
children a1b03de20345
comparison
equal deleted inserted replaced
373:54cbdef18cf4 374:dd673fae508d
5 5
6 urlpatterns = patterns('forums.views.main', 6 urlpatterns = patterns('forums.views.main',
7 url(r'^$', 'index', name='forums-index'), 7 url(r'^$', 'index', name='forums-index'),
8 url(r'^new-topic-success/(?P<tid>\d+)$', 'new_topic_thanks', name='forums-new_topic_thanks'), 8 url(r'^new-topic-success/(?P<tid>\d+)$', 'new_topic_thanks', name='forums-new_topic_thanks'),
9 url(r'^topic/(?P<id>\d+)/$', 'topic_index', name='forums-topic_index'), 9 url(r'^topic/(?P<id>\d+)/$', 'topic_index', name='forums-topic_index'),
10 url(r'^topic/(?P<id>\d+)/unread/$', 'topic_unread', name='forums-topic_unread'),
10 url(r'^delete-post/$', 'delete_post', name='forums-delete_post'), 11 url(r'^delete-post/$', 'delete_post', name='forums-delete_post'),
11 url(r'^edit/(?P<id>\d+)/$', 'edit_post', name='forums-edit_post'), 12 url(r'^edit/(?P<id>\d+)/$', 'edit_post', name='forums-edit_post'),
12 url(r'^flag-post/$', 'flag_post', name='forums-flag_post'), 13 url(r'^flag-post/$', 'flag_post', name='forums-flag_post'),
13 url(r'^forum/(?P<slug>[\w\d-]+)/$', 'forum_index', name='forums-forum_index'), 14 url(r'^forum/(?P<slug>[\w\d-]+)/$', 'forum_index', name='forums-forum_index'),
14 url(r'^forum/(?P<slug>[\w\d-]+)/catchup/$', 'forum_catchup', name='forums-catchup'), 15 url(r'^forum/(?P<slug>[\w\d-]+)/catchup/$', 'forum_catchup', name='forums-catchup'),