Merge branch 'master' into documentmeeting

This commit is contained in:
Andreas Stephanides
2014-12-18 07:50:16 +01:00
5 changed files with 12 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
/db/data.yml
/db/.#initdebug.rb /db/.#initdebug.rb
/usergroup.ldif /usergroup.ldif
/newuser.ldif /newuser.ldif

View File

@@ -113,4 +113,5 @@ gem 'bootstrap-kaminari-views', :git=>'git://github.com/matenia/bootstrap-kamina
gem 'sunspot_rails' gem 'sunspot_rails'
gem 'sunspot_solr' gem 'sunspot_solr'
gem 'sitemap_generator' gem 'sitemap_generator'
gem 'whenever' gem 'whenever'
gem 'yaml_db'

View File

@@ -32,7 +32,7 @@ class ThemenController < ApplicationController
Sanitize.node!(node,{:elements=>["span"],:attributes=>{"span"=>["class","style"]},:css=>{:properties=>["color"]}}) Sanitize.node!(node,{:elements=>["span"],:attributes=>{"span"=>["class","style"]},:css=>{:properties=>["color"]}})
{:node_whitelist=>[node]} {:node_whitelist=>[node]}
end 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]})
# # # # # #
# # # #
# # # #

View File

@@ -1,13 +1,17 @@
<h1><%= I18n.t("themengruppe.faqs") %></h1> <h1><%= I18n.t("themengruppe.faqs") %></h1>
<div class="content-wrap content-column"> <div class="content-wrap content-column">
<% @themengruppen.each do |tg| %> <% @themengruppen.each do |tg| %>
<% if can?(:show, tg) %>
<div class="contentbox"> <div class="contentbox">
<a name="themengruppe_<%=tg.id.to_s%>"></a> <a name="themengruppe_<%=tg.id.to_s%>"></a>
<h2> <%= tg.title%></h2> <h2> <%= tg.title%></h2>
<ul> <ul>
<% tg.themen.order(:priority).reverse.each do |t| %> <% tg.themen.order(:priority).reverse.each do |t| %>
<% if can?(:show, t) %>
<li> <%= t.title %> <li> <%= t.title %>
<ul> <% t.fragen.each do |f| %> <ul>
<% t.fragen.each do |f| %>
<li> <li>
<b> <%= f.title %>?</b> <b> <%= f.title %>?</b>
<p> <%= raw(f.text) %></p> <p> <%= raw(f.text) %></p>
@@ -18,8 +22,10 @@
</li> </li>
<% end %> <% end %>
<% end %>
</ul> </ul>
</div> </div>
<% end %> <% end %>
<% end %>
</div> </div>

View File

@@ -23,7 +23,7 @@ heading_clear_tag: p
width: "100%" width: "100%"
content_css: "/assets/tinymce.css" content_css: "/assets/tinymce.css"
toolbar: toolbar:
- styleselect | bold boldred_btn italic forecolor | list link image table | undo redo | fullscreen code - styleselect removeformat | bold boldred_btn italic forecolor | list link image table | bullist numlist | alignleft aligncenter alignright alignjustify | undo redo | fullscreen code
formats: formats:
boldred: {selector: "p",block: "p", classes: "mc-important"} boldred: {selector: "p",block: "p", classes: "mc-important"}
setup: function(ed) { setup: function(ed) {