Show More
@@ -2,7 +2,7 b' from django.conf.urls import patterns, u' | |||
|
2 | 2 | from boards import views |
|
3 | 3 | from boards.rss import AllThreadsFeed, TagThreadsFeed, ThreadPostsFeed |
|
4 | 4 | from boards.views import api, tag_threads, all_threads, archived_threads, \ |
|
5 | login, settings | |
|
5 | login, settings, all_tags | |
|
6 | 6 | |
|
7 | 7 | js_info_dict = { |
|
8 | 8 | 'packages': ('boards',), |
@@ -42,8 +42,9 b" urlpatterns = patterns(''," | |||
|
42 | 42 | name='thread'), |
|
43 | 43 | url(r'^thread/(?P<post_id>\w+)/(?P<mode>\w+)/$', views.thread.ThreadView |
|
44 | 44 | .as_view(), name='thread_mode'), |
|
45 | ||
|
45 | 46 | url(r'^settings/$', settings.SettingsView.as_view(), name='settings'), |
|
46 |
url(r'^tags/$', |
|
|
47 | url(r'^tags/$', all_tags.AllTagsView.as_view(), name='tags'), | |
|
47 | 48 | url(r'^captcha/', include('captcha.urls')), |
|
48 | 49 | url(r'^jump/(?P<post_id>\w+)/$', views.jump_to_post, name='jumper'), |
|
49 | 50 | url(r'^authors/$', views.authors, name='authors'), |
@@ -27,15 +27,6 b" BAN_REASON_SPAM = 'Autoban: spam bot'" | |||
|
27 | 27 | DEFAULT_PAGE = 1 |
|
28 | 28 | |
|
29 | 29 | |
|
30 | def all_tags(request): | |
|
31 | """All tags list""" | |
|
32 | ||
|
33 | context = _init_default_context(request) | |
|
34 | context['all_tags'] = Tag.objects.get_not_empty_tags() | |
|
35 | ||
|
36 | return render(request, 'boards/tags.html', context) | |
|
37 | ||
|
38 | ||
|
39 | 30 | # TODO Maybe this jumper is not needed any more? Only as a hack to find some |
|
40 | 31 | # post without knowing its thread |
|
41 | 32 | def jump_to_post(request, post_id): |
General Comments 0
You need to be logged in to leave comments.
Login now