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

@ -53,7 +53,7 @@ class ApplicationController < ActionController::Base
end
def use_crawler_layout?
@use_crawler_layout ||= (has_escaped_fragment? || CrawlerDetection.crawler?(request.user_agent))
@use_crawler_layout ||= (has_escaped_fragment? || CrawlerDetection.crawler?(request.user_agent) || params.key?("print"))
end
def add_readonly_header