Commit d3dad5e258108e27577b4c3c3efb7d32bfb289f0

Authored by Karpikau Andrei
1 parent d5825795

change version, check pdf include css file

@@ -202,10 +202,9 @@ module Kanjai @@ -202,10 +202,9 @@ module Kanjai
202 202
203 #if params[:format].to_s == 'pdf' 203 #if params[:format].to_s == 'pdf'
204 #css_path = "#{$scheme}#{ADMIN_CONFIG['domain_name']}#{ActionController::Base.helpers.asset_path('kanjai/pdf.css')}" 204 #css_path = "#{$scheme}#{ADMIN_CONFIG['domain_name']}#{ActionController::Base.helpers.asset_path('kanjai/pdf.css')}"
205 - file = File.open("#{Rails.root}/pdf.css", "r") 205 + file = File.open("#{Rails.root}/public/pdf.css", "r")
206 contents = file.read 206 contents = file.read
207 207
208 - css_path = "#{$scheme}#{ADMIN_CONFIG['domain_name']}/public/pdf.css"  
209 layer.gsub!(/<\/head>/, '<style>'+ contents +'</style></head>') 208 layer.gsub!(/<\/head>/, '<style>'+ contents +'</style></head>')
210 #layer.gsub!(/<meta charset/, '<link rel="stylesheet" href="'+ css_path +'"><meta charset') 209 #layer.gsub!(/<meta charset/, '<link rel="stylesheet" href="'+ css_path +'"><meta charset')
211 #end 210 #end
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.102" 2 + VERSION = "0.0.103"
3 end 3 end