diff --git a/app/controllers/travel_advice_controller.rb b/app/controllers/travel_advice_controller.rb index 92a7fdc760..2bc9a762ac 100644 --- a/app/controllers/travel_advice_controller.rb +++ b/app/controllers/travel_advice_controller.rb @@ -20,6 +20,8 @@ def index def show @content_item.set_current_part(params[:slug]) + request.variant = :print if params[:variant] == "print" + respond_to do |format| format.html format.atom diff --git a/app/views/travel_advice/show.html+print.erb b/app/views/travel_advice/show.html+print.erb new file mode 100644 index 0000000000..b3d484f9a7 --- /dev/null +++ b/app/views/travel_advice/show.html+print.erb @@ -0,0 +1,45 @@ +<% add_view_stylesheet("travel-advice") %> +<% + content_for :title, "Print #{@content_item.page_title}" + content_for :simple_header, true + content_for :extra_head_content do %> + +<% end %> + +