Show More
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -573,3 +573,8 b' msgid_plural "You can post no more than ' | |||||
573 | msgstr[0] "Вы можете отправить не более %(files)d файла." |
|
573 | msgstr[0] "Вы можете отправить не более %(files)d файла." | |
574 | msgstr[1] "Вы можете отправить не более %(files)d файлов." |
|
574 | msgstr[1] "Вы можете отправить не более %(files)d файлов." | |
575 | msgstr[2] "Вы можете отправить не более %(files)d файлов." |
|
575 | msgstr[2] "Вы можете отправить не более %(files)d файлов." | |
|
576 | ||||
|
577 | #, python-format | |||
|
578 | msgid "Max file number is %(max_files)s." | |||
|
579 | msgstr "Максимальное количество файлов %(max_files)s." | |||
|
580 |
@@ -172,6 +172,7 b'' | |||||
172 | {% with size=max_file_size|filesizeformat %} |
|
172 | {% with size=max_file_size|filesizeformat %} | |
173 | {% blocktrans %}Max file size is {{ size }}.{% endblocktrans %} |
|
173 | {% blocktrans %}Max file size is {{ size }}.{% endblocktrans %} | |
174 | {% endwith %} |
|
174 | {% endwith %} | |
|
175 | {% blocktrans %}Max file number is {{ max_files }}.{% endblocktrans %} | |||
175 | </div> |
|
176 | </div> | |
176 | <div id="preview-text"></div> |
|
177 | <div id="preview-text"></div> | |
177 | <div><a href="{% url "staticpage" name="help" %}">{% trans 'Text syntax' %}</a></div> |
|
178 | <div><a href="{% url "staticpage" name="help" %}">{% trans 'Text syntax' %}</a></div> |
@@ -62,6 +62,7 b'' | |||||
62 | {% with size=max_file_size|filesizeformat %} |
|
62 | {% with size=max_file_size|filesizeformat %} | |
63 | {% blocktrans %}Max file size is {{ size }}.{% endblocktrans %} |
|
63 | {% blocktrans %}Max file size is {{ size }}.{% endblocktrans %} | |
64 | {% endwith %} |
|
64 | {% endwith %} | |
|
65 | {% blocktrans %}Max file number is {{ max_files }}.{% endblocktrans %} | |||
65 | </div> |
|
66 | </div> | |
66 | <div><a href="{% url "staticpage" name="help" %}"> |
|
67 | <div><a href="{% url "staticpage" name="help" %}"> | |
67 | {% trans 'Text syntax' %}</a></div> |
|
68 | {% trans 'Text syntax' %}</a></div> |
@@ -34,6 +34,7 b" PARAMETER_THREADS = 'threads'" | |||||
34 | PARAMETER_ADDITIONAL = 'additional_params' |
|
34 | PARAMETER_ADDITIONAL = 'additional_params' | |
35 | PARAMETER_MAX_FILE_SIZE = 'max_file_size' |
|
35 | PARAMETER_MAX_FILE_SIZE = 'max_file_size' | |
36 | PARAMETER_RSS_URL = 'rss_url' |
|
36 | PARAMETER_RSS_URL = 'rss_url' | |
|
37 | PARAMETER_MAX_FILES = 'max_files' | |||
37 |
|
38 | |||
38 | TEMPLATE = 'boards/all_threads.html' |
|
39 | TEMPLATE = 'boards/all_threads.html' | |
39 | DEFAULT_PAGE = 1 |
|
40 | DEFAULT_PAGE = 1 | |
@@ -85,6 +86,7 b' class AllThreadsView(PostMixin, FileUplo' | |||||
85 | params[CONTEXT_FORM] = form |
|
86 | params[CONTEXT_FORM] = form | |
86 | params[PARAMETER_MAX_FILE_SIZE] = self.get_max_upload_size() |
|
87 | params[PARAMETER_MAX_FILE_SIZE] = self.get_max_upload_size() | |
87 | params[PARAMETER_RSS_URL] = self.get_rss_url() |
|
88 | params[PARAMETER_RSS_URL] = self.get_rss_url() | |
|
89 | params[PARAMETER_MAX_FILES] = settings.get_int('Forms', 'MaxFileCount') | |||
88 |
|
90 | |||
89 | paginator.set_url(self.get_reverse_url(), request.GET.dict()) |
|
91 | paginator.set_url(self.get_reverse_url(), request.GET.dict()) | |
90 | self.get_page_context(paginator, params, page) |
|
92 | self.get_page_context(paginator, params, page) |
@@ -1,3 +1,4 b'' | |||||
|
1 | from boards import settings | |||
1 | from boards.views.thread import ThreadView |
|
2 | from boards.views.thread import ThreadView | |
2 | from boards.views.mixins import FileUploadMixin |
|
3 | from boards.views.mixins import FileUploadMixin | |
3 |
|
4 | |||
@@ -7,6 +8,7 b" CONTEXT_BUMPLIMIT_PRG = 'bumplimit_progr" | |||||
7 | CONTEXT_POSTS_LEFT = 'posts_left' |
|
8 | CONTEXT_POSTS_LEFT = 'posts_left' | |
8 | CONTEXT_BUMPABLE = 'bumpable' |
|
9 | CONTEXT_BUMPABLE = 'bumpable' | |
9 | PARAM_MAX_FILE_SIZE = 'max_file_size' |
|
10 | PARAM_MAX_FILE_SIZE = 'max_file_size' | |
|
11 | PARAM_MAX_FILES = 'max_files' | |||
10 |
|
12 | |||
11 |
|
13 | |||
12 | class NormalThreadView(ThreadView, FileUploadMixin): |
|
14 | class NormalThreadView(ThreadView, FileUploadMixin): | |
@@ -29,5 +31,6 b' class NormalThreadView(ThreadView, FileU' | |||||
29 | params[CONTEXT_BUMPLIMIT_PRG] = str( |
|
31 | params[CONTEXT_BUMPLIMIT_PRG] = str( | |
30 | float(left_posts) / max_posts * 100) |
|
32 | float(left_posts) / max_posts * 100) | |
31 | params[PARAM_MAX_FILE_SIZE] = self.get_max_upload_size() |
|
33 | params[PARAM_MAX_FILE_SIZE] = self.get_max_upload_size() | |
|
34 | params[PARAM_MAX_FILES] = settings.get_int('Forms', 'MaxFileCount') | |||
32 |
|
35 | |||
33 | return params |
|
36 | return params |
General Comments 0
You need to be logged in to leave comments.
Login now