faqs oberfläche

This commit is contained in:
2014-04-11 13:01:17 +02:00
parent 68925c1463
commit 73bba9bc6f
5 changed files with 56 additions and 41 deletions

View File

@@ -1,19 +1,24 @@
<% @themengruppen.each do |tg| %>
<a name="themengruppe_<%=tg.id.to_s%>">
<h2><%= tg.title%></h2></a>
<ul>
<% tg.themen.order(:priority).reverse.each do |t| %>
<li><%= t.title %>
<div class="content-wrap content-column">
<% @themengruppen.each do |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| %>
<li> <%= t.title %>
<ul> <% t.fragen.each do |f| %>
<li>
<b> <%= f.title %></b>
<p> <%= f.text %></p>
</li>
<% end %>
</ul>
</li>
<% end %>
</ul>
<ul>
<% t.fragen.each do |f| %>
<li><b> <%= f.title %></b><p> <%= f.text %></p></li>
<% end %>
</ul>
</li>
<% end %>
</ul>
<% end %>
</div>
<% end %>
</div>