# HG changeset patch # User Brian Neal # Date 1251662322 0 # Node ID 531fcc342a0322d7515671f48886584bd8cb9b50 # Parent 9e5e52556d5b5300f3724f84aae97f6f0ea4032a Forums: put the forum indices under the url forums/forum to avoid clashing with other functions. Modified the forum index template to have a link to the topic creator's profile. diff -r 9e5e52556d5b -r 531fcc342a03 gpp/forums/urls.py --- a/gpp/forums/urls.py Sat Aug 29 22:01:40 2009 +0000 +++ b/gpp/forums/urls.py Sun Aug 30 19:58:42 2009 +0000 @@ -7,7 +7,7 @@ url(r'^$', 'index', name='forums-index'), url(r'^new-topic-success/(?P\d+)$', 'new_topic_thanks', name='forums-new_topic_thanks'), url(r'^topic/(?P\d+)/$', 'topic_index', name='forums-topic_index'), - url(r'^(?P[\w\d-]+)/$', 'forum_index', name='forums-forum_index'), - url(r'^(?P[\w\d-]+)/topic/$', 'new_topic', name='forums-new_topic'), + url(r'^forum/(?P[\w\d-]+)/$', 'forum_index', name='forums-forum_index'), + url(r'^forum/(?P[\w\d-]+)/new-topic/$', 'new_topic', name='forums-new_topic'), ) diff -r 9e5e52556d5b -r 531fcc342a03 gpp/templates/forums/forum_index.html --- a/gpp/templates/forums/forum_index.html Sat Aug 29 22:01:40 2009 +0000 +++ b/gpp/templates/forums/forum_index.html Sun Aug 30 19:58:42 2009 +0000 @@ -26,7 +26,7 @@

{{ topic.name }}

{{ topic.reply_count }} - {{ topic.user.username }} + {{ topic.user.username }} {{ topic.view_count }} {% last_post_info topic.last_post %}