Feature: Adds a button to print a topic

This commit is contained in:
Rafael dos Santos Silva
2016-08-01 01:45:05 -03:00
parent 999f52954f
commit c12e533273
8 changed files with 38 additions and 2 deletions

View File

@ -12,6 +12,10 @@ class TopicView
10
end
def self.print_chunk_size
1000
end
def self.chunk_size
20
end
@ -44,7 +48,11 @@ class TopicView
end
@page = 1 if (!@page || @page.zero?)
@chunk_size = options[:slow_platform] ? TopicView.slow_chunk_size : TopicView.chunk_size
@chunk_size = case
when options[:slow_platform] then TopicView.slow_chunk_size
when options[:print] then 1000
else TopicView.chunk_size
end
@limit ||= @chunk_size
setup_filtered_posts