Show More
1 | NO CONTENT: file renamed from boards/templates/base.html to boards/templates/boards/base.html |
|
NO CONTENT: file renamed from boards/templates/base.html to boards/templates/boards/base.html |
1 | NO CONTENT: file renamed from boards/templates/login.html to boards/templates/boards/login.html |
|
NO CONTENT: file renamed from boards/templates/login.html to boards/templates/boards/login.html |
@@ -1,4 +1,4 b'' | |||||
1 | {% extends "base.html" %} |
|
1 | {% extends "boards/base.html" %} | |
2 |
|
2 | |||
3 | {% load i18n %} |
|
3 | {% load i18n %} | |
4 | {% load markup %} |
|
4 | {% load markup %} |
@@ -1,4 +1,4 b'' | |||||
1 | {% extends "base.html" %} |
|
1 | {% extends "boards/base.html" %} | |
2 |
|
2 | |||
3 | {% load i18n %} |
|
3 | {% load i18n %} | |
4 |
|
4 |
@@ -1,4 +1,4 b'' | |||||
1 | {% extends "base.html" %} |
|
1 | {% extends "boards/base.html" %} | |
2 |
|
2 | |||
3 | {% load i18n %} |
|
3 | {% load i18n %} | |
4 | {% load markup %} |
|
4 | {% load markup %} |
@@ -1,4 +1,4 b'' | |||||
1 | {% extends "base.html" %} |
|
1 | {% extends "boards/base.html" %} | |
2 |
|
2 | |||
3 | {% load i18n %} |
|
3 | {% load i18n %} | |
4 | {% load markup %} |
|
4 | {% load markup %} |
@@ -38,7 +38,7 b' def index(request, page=0):' | |||||
38 | context['theme'] = _get_theme(request) |
|
38 | context['theme'] = _get_theme(request) | |
39 | context['pages'] = range(Post.objects.get_thread_page_count()) |
|
39 | context['pages'] = range(Post.objects.get_thread_page_count()) | |
40 |
|
40 | |||
41 | return render(request, 'posting_general.html', |
|
41 | return render(request, 'boards/posting_general.html', | |
42 | context) |
|
42 | context) | |
43 |
|
43 | |||
44 |
|
44 | |||
@@ -112,7 +112,7 b' def tag(request, tag_name, page=0):' | |||||
112 |
|
112 | |||
113 | context['form'] = form |
|
113 | context['form'] = form | |
114 |
|
114 | |||
115 | return render(request, 'posting_general.html', |
|
115 | return render(request, 'boards/posting_general.html', | |
116 | context) |
|
116 | context) | |
117 |
|
117 | |||
118 |
|
118 | |||
@@ -139,7 +139,7 b' def thread(request, post_id):' | |||||
139 | context['tags'] = Tag.objects.get_popular_tags() |
|
139 | context['tags'] = Tag.objects.get_popular_tags() | |
140 | context['theme'] = _get_theme(request) |
|
140 | context['theme'] = _get_theme(request) | |
141 |
|
141 | |||
142 | return render(request, 'thread.html', context) |
|
142 | return render(request, 'boards/thread.html', context) | |
143 |
|
143 | |||
144 |
|
144 | |||
145 | def login(request): |
|
145 | def login(request): | |
@@ -158,9 +158,9 b' def login(request):' | |||||
158 | response = HttpResponseRedirect('/') |
|
158 | response = HttpResponseRedirect('/') | |
159 |
|
159 | |||
160 | else: |
|
160 | else: | |
161 | response = render(request, 'login.html', {'error': 'Login error'}) |
|
161 | response = render(request, 'boards/login.html', {'error': 'Login error'}) | |
162 | else: |
|
162 | else: | |
163 | response = render(request, 'login.html', {}) |
|
163 | response = render(request, 'boards/login.html', {}) | |
164 |
|
164 | |||
165 | return response |
|
165 | return response | |
166 |
|
166 | |||
@@ -187,7 +187,7 b' def settings(request):' | |||||
187 | context['tags'] = Tag.objects.get_popular_tags() |
|
187 | context['tags'] = Tag.objects.get_popular_tags() | |
188 | context['theme'] = _get_theme(request) |
|
188 | context['theme'] = _get_theme(request) | |
189 |
|
189 | |||
190 | return render(request, 'settings.html', context) |
|
190 | return render(request, 'boards/settings.html', context) | |
191 |
|
191 | |||
192 |
|
192 | |||
193 | def all_tags(request): |
|
193 | def all_tags(request): | |
@@ -196,7 +196,7 b' def all_tags(request):' | |||||
196 | context['theme'] = _get_theme(request) |
|
196 | context['theme'] = _get_theme(request) | |
197 | context['all_tags'] = Tag.objects.get_not_empty_tags() |
|
197 | context['all_tags'] = Tag.objects.get_not_empty_tags() | |
198 |
|
198 | |||
199 | return render(request, 'tags.html', context) |
|
199 | return render(request, 'boards/tags.html', context) | |
200 |
|
200 | |||
201 |
|
201 | |||
202 | def _get_theme(request): |
|
202 | def _get_theme(request): |
General Comments 0
You need to be logged in to leave comments.
Login now