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

@ -58,6 +58,7 @@ class TopicsController < ApplicationController
username_filters = opts[:username_filters]
opts[:slow_platform] = true if slow_platform?
opts[:print] = true if params[:print].present?
opts[:username_filters] = username_filters.split(',') if username_filters.is_a?(String)
# Special case: a slug with a number in front should look by slug first before looking