Show More
@@ -29,6 +29,7 b' DefaultTheme = md' | |||||
29 | DefaultImageViewer = simple |
|
29 | DefaultImageViewer = simple | |
30 | LastRepliesCount = 3 |
|
30 | LastRepliesCount = 3 | |
31 | ThreadsPerPage = 3 |
|
31 | ThreadsPerPage = 3 | |
|
32 | PostsPerPage = 10 | |||
32 | ImagesPerPageGallery = 20 |
|
33 | ImagesPerPageGallery = 20 | |
33 | MaxFavoriteThreads = 20 |
|
34 | MaxFavoriteThreads = 20 | |
34 |
|
35 |
@@ -1,13 +1,14 b'' | |||||
1 | from django.core.urlresolvers import reverse |
|
1 | from django.core.urlresolvers import reverse | |
2 | from django.shortcuts import render |
|
2 | from django.shortcuts import render | |
3 |
|
3 | |||
|
4 | from boards import settings | |||
4 | from boards.abstracts.paginator import get_paginator |
|
5 | from boards.abstracts.paginator import get_paginator | |
5 | from boards.abstracts.settingsmanager import get_settings_manager |
|
6 | from boards.abstracts.settingsmanager import get_settings_manager | |
6 | from boards.models import Post |
|
7 | from boards.models import Post | |
7 | from boards.views.base import BaseBoardView |
|
8 | from boards.views.base import BaseBoardView | |
8 | from boards.views.posting_mixin import PostMixin |
|
9 | from boards.views.posting_mixin import PostMixin | |
9 |
|
10 | |||
10 | POSTS_PER_PAGE = 10 |
|
11 | POSTS_PER_PAGE = settings.get_int('View', 'PostsPerPage') | |
11 |
|
12 | |||
12 | PARAMETER_CURRENT_PAGE = 'current_page' |
|
13 | PARAMETER_CURRENT_PAGE = 'current_page' | |
13 | PARAMETER_PAGINATOR = 'paginator' |
|
14 | PARAMETER_PAGINATOR = 'paginator' |
General Comments 0
You need to be logged in to leave comments.
Login now