diff --git a/.gitignore b/.gitignore index c80d998..11d2dcc 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/db/data.yml /db/.#initdebug.rb /usergroup.ldif /newuser.ldif diff --git a/Gemfile b/Gemfile index eb19142..12a6f4a 100755 --- a/Gemfile +++ b/Gemfile @@ -113,4 +113,5 @@ gem 'bootstrap-kaminari-views', :git=>'git://github.com/matenia/bootstrap-kamina gem 'sunspot_rails' gem 'sunspot_solr' gem 'sitemap_generator' -gem 'whenever' \ No newline at end of file +gem 'whenever' +gem 'yaml_db' diff --git a/app/controllers/themen_controller.rb b/app/controllers/themen_controller.rb index 5f5024a..b3d1ede 100644 --- a/app/controllers/themen_controller.rb +++ b/app/controllers/themen_controller.rb @@ -32,7 +32,7 @@ class ThemenController < ApplicationController Sanitize.node!(node,{:elements=>["span"],:attributes=>{"span"=>["class","style"]},:css=>{:properties=>["color"]}}) {:node_whitelist=>[node]} end - @thema.text = Sanitize.fragment(@thema.text, {:elements=>['table','tr','td','p','h3','h4','a','th','img','ul','li','i','b','em'],:attributes=>{'p'=>['class'],'table'=>['class'],'a'=>['href','data'],'img'=>['src','width','height'],:all=>['class']},:css=>{:properties=>['float']},:transformers=>[trans_icons]}) + @thema.text = Sanitize.fragment(@thema.text, {:elements=>['table','tr','td','p','h1','h2','h3','h4','h5','a','th','img','ul','li','i','b','em','pre','code'],:attributes=>{'p'=>['class'],'table'=>['class'],'a'=>['href','data'],'img'=>['src','width','height'],:all=>['class']},:css=>{:properties=>['float']},:transformers=>[trans_icons]}) # # # # # # # diff --git a/app/views/themengruppen/faqs.html.erb b/app/views/themengruppen/faqs.html.erb index 4dc64ce..cd85780 100644 --- a/app/views/themengruppen/faqs.html.erb +++ b/app/views/themengruppen/faqs.html.erb @@ -1,13 +1,17 @@