Don't escape style_additions
Credit to Andrew Stacey
This commit is contained in:
parent
57d52b0d15
commit
b52a66c207
|
@ -28,7 +28,7 @@
|
||||||
<%= Rails.root.join('public', 'stylesheets', 'instiki.css').read if @inline_style %>
|
<%= Rails.root.join('public', 'stylesheets', 'instiki.css').read if @inline_style %>
|
||||||
<%= Rails.root.join('public', 'stylesheets', 'syntax.css').read if @inline_style %>
|
<%= Rails.root.join('public', 'stylesheets', 'syntax.css').read if @inline_style %>
|
||||||
</style>
|
</style>
|
||||||
<%= "<style type='text/css'>#{@style_additions}</style>" if @style_additions %>
|
<%= "<style type='text/css'>#{@style_additions}</style>".html_safe if @style_additions %>
|
||||||
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
|
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
|
||||||
<%= @web && @web.additional_style ? @web.additional_style.html_safe : '' %>
|
<%= @web && @web.additional_style ? @web.additional_style.html_safe : '' %>
|
||||||
/*]]>*/--></style>
|
/*]]>*/--></style>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<%= Rails.root.join('public', 'stylesheets', 'instiki.css').read if @inline_style %>
|
<%= Rails.root.join('public', 'stylesheets', 'instiki.css').read if @inline_style %>
|
||||||
</style>
|
</style>
|
||||||
<%= stylesheet_link_tag 'instiki', :media => 'all' unless @inline_style %>
|
<%= stylesheet_link_tag 'instiki', :media => 'all' unless @inline_style %>
|
||||||
<%= "<style type='text/css'>#{@style_additions}</style>" if @style_additions %>
|
<%= "<style type='text/css'>#{@style_additions}</style>".html_safe if @style_additions %>
|
||||||
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
|
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
|
||||||
<%= @web ? @web.additional_style : '' %>
|
<%= @web ? @web.additional_style : '' %>
|
||||||
/*]]>*/--></style>
|
/*]]>*/--></style>
|
||||||
|
|
Loading…
Reference in a new issue