forked from bofh/fetsite
Merge branch 'master' into documentmeeting
This commit is contained in:
@@ -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]})
|
||||
# # #
|
||||
# #
|
||||
# #
|
||||
|
||||
@@ -1,13 +1,17 @@
|
||||
<h1><%= I18n.t("themengruppe.faqs") %></h1>
|
||||
<div class="content-wrap content-column">
|
||||
|
||||
<% @themengruppen.each do |tg| %>
|
||||
<% if can?(:show, tg) %>
|
||||
<div class="contentbox">
|
||||
<a name="themengruppe_<%=tg.id.to_s%>"></a>
|
||||
<h2> <%= tg.title%></h2>
|
||||
<ul>
|
||||
<% tg.themen.order(:priority).reverse.each do |t| %>
|
||||
<% if can?(:show, t) %>
|
||||
<li> <%= t.title %>
|
||||
<ul> <% t.fragen.each do |f| %>
|
||||
<ul>
|
||||
<% t.fragen.each do |f| %>
|
||||
<li>
|
||||
<b> <%= f.title %>?</b>
|
||||
<p> <%= raw(f.text) %></p>
|
||||
@@ -18,8 +22,10 @@
|
||||
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user