Commit 65e7a7979ab1299f051e8fb2cc9b44dd76dbe8cf

Authored by Andrey Karpikov
1 parent 4482d3b1

check preview content in admin part

@@ -177,14 +177,14 @@ module Kanjai @@ -177,14 +177,14 @@ module Kanjai
177 end 177 end
178 styles = css_files.collect do |file| 178 styles = css_files.collect do |file|
179 #begin 179 #begin
180 - Net::HTTP.get(URI.parse(file)) 180 + "<link rel='stylesheet' href='#{file}'>"
181 #rescue 181 #rescue
182 182
183 #end 183 #end
184 end 184 end
185 185
186 #css_files = css_files.collect{|link| "<link rel='stylesheet' href='#{link}' />".html_safe }.join('') 186 #css_files = css_files.collect{|link| "<link rel='stylesheet' href='#{link}' />".html_safe }.join('')
187 - content += "<style>#{styles.join(' ')}</style>".html_safe 187 + content += "#{styles.join(' ')}".html_safe
188 188
189 #<link rel="stylesheet" href="./assets/css/libs.bundle.css" /> 189 #<link rel="stylesheet" href="./assets/css/libs.bundle.css" />
190 190
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.319" 2 + VERSION = "0.0.320"
3 end 3 end