##// END OF EJS Templates
Added RSS feed link for 'all threads' page
neko259 -
r1914:9eecd5c0 default
parent child Browse files
Show More
@@ -1,99 +1,100 b''
1 from django.conf.urls import url
1 from django.conf.urls import url
2
2
3 import neboard
3 import neboard
4
4
5 from boards import views
5 from boards import views
6 from boards.rss import AllThreadsFeed, TagThreadsFeed, ThreadPostsFeed
6 from boards.rss import AllThreadsFeed, TagThreadsFeed, ThreadPostsFeed
7 from boards.views import api, tag_threads, all_threads, \
7 from boards.views import api, tag_threads, all_threads, \
8 settings, all_tags, feed, alias
8 settings, all_tags, feed, alias
9 from boards.views.authors import AuthorsView
9 from boards.views.authors import AuthorsView
10 from boards.views.notifications import NotificationView
10 from boards.views.notifications import NotificationView
11 from boards.views.static import StaticPageView
11 from boards.views.static import StaticPageView
12 from boards.views.preview import PostPreviewView
12 from boards.views.preview import PostPreviewView
13 from boards.views.sync import get_post_sync_data, response_get, response_list
13 from boards.views.sync import get_post_sync_data, response_get, response_list
14 from boards.views.random import RandomImageView
14 from boards.views.random import RandomImageView
15 from boards.views.tag_gallery import TagGalleryView
15 from boards.views.tag_gallery import TagGalleryView
16 from boards.views.translation import cached_javascript_catalog
16 from boards.views.translation import cached_javascript_catalog
17 from boards.views.search import BoardSearchView
17 from boards.views.search import BoardSearchView
18 from boards.views.landing import LandingView
18 from boards.views.landing import LandingView
19 from boards.views.utils import UtilsView
19 from boards.views.utils import UtilsView
20
20
21
21
22 js_info_dict = {
22 js_info_dict = {
23 'packages': ('boards',),
23 'packages': ('boards',),
24 }
24 }
25
25
26 urlpatterns = [
26 urlpatterns = [
27 # /boards/
27 # /boards/
28 url(r'^all/$', all_threads.AllThreadsView.as_view(), name='index'),
28 url(r'^all/$', all_threads.AllThreadsView.as_view(), name='index'),
29
29
30 # /boards/tag/tag_name/
30 # /boards/tag/tag_name/
31 url(r'^tag/(?P<tag_name>\w+)/$', tag_threads.TagView.as_view(),
31 url(r'^tag/(?P<tag_name>\w+)/$', tag_threads.TagView.as_view(),
32 name='tag'),
32 name='tag'),
33
33
34 # /boards/thread/
34 # /boards/thread/
35 url(r'^thread/(?P<post_id>\d+)/$', views.thread.NormalThreadView.as_view(),
35 url(r'^thread/(?P<post_id>\d+)/$', views.thread.NormalThreadView.as_view(),
36 name='thread'),
36 name='thread'),
37 url(r'^thread/(?P<post_id>\d+)/mode/gallery/$', views.thread.GalleryThreadView.as_view(),
37 url(r'^thread/(?P<post_id>\d+)/mode/gallery/$', views.thread.GalleryThreadView.as_view(),
38 name='thread_gallery'),
38 name='thread_gallery'),
39 url(r'^thread/(?P<post_id>\d+)/mode/tree/$', views.thread.TreeThreadView.as_view(),
39 url(r'^thread/(?P<post_id>\d+)/mode/tree/$', views.thread.TreeThreadView.as_view(),
40 name='thread_tree'),
40 name='thread_tree'),
41 # /feed/
41 # /feed/
42 url(r'^feed/$', views.feed.FeedView.as_view(), name='feed'),
42 url(r'^feed/$', views.feed.FeedView.as_view(), name='feed'),
43
43
44 url(r'^settings/$', settings.SettingsView.as_view(), name='settings'),
44 url(r'^settings/$', settings.SettingsView.as_view(), name='settings'),
45 url(r'^aliases/(?P<category>\w+)/$', alias.AliasesView.as_view(), name='aliases'),
45 url(r'^aliases/(?P<category>\w+)/$', alias.AliasesView.as_view(), name='aliases'),
46 url(r'^tags/$', all_tags.AllTagsView.as_view(), name='tags'),
46 url(r'^tags/$', all_tags.AllTagsView.as_view(), name='tags'),
47 url(r'^authors/$', AuthorsView.as_view(), name='authors'),
47 url(r'^authors/$', AuthorsView.as_view(), name='authors'),
48
48
49 url(r'^banned/$', views.banned.BannedView.as_view(), name='banned'),
49 url(r'^banned/$', views.banned.BannedView.as_view(), name='banned'),
50 url(r'^staticpage/(?P<name>\w+)/$', StaticPageView.as_view(),
50 url(r'^staticpage/(?P<name>\w+)/$', StaticPageView.as_view(),
51 name='staticpage'),
51 name='staticpage'),
52
52
53 url(r'^random/$', RandomImageView.as_view(), name='random'),
53 url(r'^random/$', RandomImageView.as_view(), name='random'),
54 url(r'^tag/(?P<tag_name>\w+)/gallery/$', TagGalleryView.as_view(), name='tag_gallery'),
54 url(r'^tag/(?P<tag_name>\w+)/gallery/$', TagGalleryView.as_view(), name='tag_gallery'),
55 url(r'^search/$', BoardSearchView.as_view(), name='search'),
55 url(r'^search/$', BoardSearchView.as_view(), name='search'),
56 url(r'^$', LandingView.as_view(), name='landing'),
56 url(r'^$', LandingView.as_view(), name='landing'),
57 url(r'^utils$', UtilsView.as_view(), name='utils'),
57 url(r'^utils$', UtilsView.as_view(), name='utils'),
58
58
59 # RSS feeds
59 # RSS feeds
60 url(r'^rss/$', AllThreadsFeed()),
60 url(r'^rss/$', AllThreadsFeed()),
61 url(r'^all/rss/$', AllThreadsFeed()),
61 url(r'^page/(?P<page>\d+)/rss/$', AllThreadsFeed()),
62 url(r'^page/(?P<page>\d+)/rss/$', AllThreadsFeed()),
62 url(r'^tag/(?P<tag_name>\w+)/rss/$', TagThreadsFeed()),
63 url(r'^tag/(?P<tag_name>\w+)/rss/$', TagThreadsFeed()),
63 url(r'^tag/(?P<tag_name>\w+)/page/(?P<page>\w+)/rss/$', TagThreadsFeed()),
64 url(r'^tag/(?P<tag_name>\w+)/page/(?P<page>\w+)/rss/$', TagThreadsFeed()),
64 url(r'^thread/(?P<post_id>\d+)/rss/$', ThreadPostsFeed()),
65 url(r'^thread/(?P<post_id>\d+)/rss/$', ThreadPostsFeed()),
65
66
66 # i18n
67 # i18n
67 url(r'^jsi18n/$', cached_javascript_catalog, js_info_dict,
68 url(r'^jsi18n/$', cached_javascript_catalog, js_info_dict,
68 name='js_info_dict'),
69 name='js_info_dict'),
69
70
70 # API
71 # API
71 url(r'^api/post/(?P<post_id>\d+)/$', api.get_post, name="get_post"),
72 url(r'^api/post/(?P<post_id>\d+)/$', api.get_post, name="get_post"),
72 url(r'^api/diff_thread/$', api.api_get_threaddiff, name="get_thread_diff"),
73 url(r'^api/diff_thread/$', api.api_get_threaddiff, name="get_thread_diff"),
73 url(r'^api/threads/(?P<count>\w+)/$', api.api_get_threads,
74 url(r'^api/threads/(?P<count>\w+)/$', api.api_get_threads,
74 name='get_threads'),
75 name='get_threads'),
75 url(r'^api/tags/$', api.api_get_tags, name='get_tags'),
76 url(r'^api/tags/$', api.api_get_tags, name='get_tags'),
76 url(r'^api/thread/(?P<opening_post_id>\w+)/$', api.api_get_thread_posts,
77 url(r'^api/thread/(?P<opening_post_id>\w+)/$', api.api_get_thread_posts,
77 name='get_thread'),
78 name='get_thread'),
78 url(r'^api/add_post/(?P<opening_post_id>\w+)/$', api.api_add_post,
79 url(r'^api/add_post/(?P<opening_post_id>\w+)/$', api.api_add_post,
79 name='add_post'),
80 name='add_post'),
80 url(r'^api/notifications/(?P<username>\w+)/$', api.api_get_notifications,
81 url(r'^api/notifications/(?P<username>\w+)/$', api.api_get_notifications,
81 name='api_notifications'),
82 name='api_notifications'),
82 url(r'^api/preview/$', api.api_get_preview, name='preview'),
83 url(r'^api/preview/$', api.api_get_preview, name='preview'),
83 url(r'^api/new_posts/$', api.api_get_new_posts, name='new_posts'),
84 url(r'^api/new_posts/$', api.api_get_new_posts, name='new_posts'),
84 url(r'^api/stickers/$', api.api_get_stickers, name='get_stickers'),
85 url(r'^api/stickers/$', api.api_get_stickers, name='get_stickers'),
85
86
86 # Sync protocol API
87 # Sync protocol API
87 url(r'^api/sync/list/$', response_list, name='api_sync_list'),
88 url(r'^api/sync/list/$', response_list, name='api_sync_list'),
88 url(r'^api/sync/get/$', response_get, name='api_sync_get'),
89 url(r'^api/sync/get/$', response_get, name='api_sync_get'),
89
90
90 # Notifications
91 # Notifications
91 url(r'^notifications/(?P<username>\w+)/$', NotificationView.as_view(), name='notifications'),
92 url(r'^notifications/(?P<username>\w+)/$', NotificationView.as_view(), name='notifications'),
92 url(r'^notifications/$', NotificationView.as_view(), name='notifications'),
93 url(r'^notifications/$', NotificationView.as_view(), name='notifications'),
93
94
94 # Post preview
95 # Post preview
95 url(r'^preview/$', PostPreviewView.as_view(), name='preview'),
96 url(r'^preview/$', PostPreviewView.as_view(), name='preview'),
96 url(r'^post_xml/(?P<post_id>\d+)$', get_post_sync_data,
97 url(r'^post_xml/(?P<post_id>\d+)$', get_post_sync_data,
97 name='post_sync_data'),
98 name='post_sync_data'),
98 ]
99 ]
99
100
General Comments 0
You need to be logged in to leave comments. Login now