FIXED themengruppe verwalten + faqs order

This commit is contained in:
Andreas Stephanides
2014-03-29 13:10:41 +01:00
parent 7f9b0b996e
commit 5134e25b81
5 changed files with 9 additions and 6 deletions

View File

@@ -2,8 +2,10 @@
<h2><%= tg.title%></h2>
<ul>
<% tg.themen.each do |t| %>
<li> <%= t.title %>
<% tg.themen.order(:priority).reverse.each do |t| %>
<li><a name="themengruppe_<%=t.id.to_s%>"> <%= t.title %> &nbsp;</a>
<ul>
<% t.fragen.each do |f| %>

View File

@@ -1,5 +1,6 @@
<div class="content-wrap content-column" >
<h2>sdffs2</h2>
<%= link_to fa_icon("arrow-circle-left 2x")+" Alle Themengruppen", themengruppen_path, :class=>"linkbox" %>
<%= link_to fa_icon("question 2x")+" Häufige Fragen", faqs_themengruppen_path(:anchor=>"themengruppe_"+@themengruppe.id.to_s), :class=>"linkbox" %>
<h1><%= @themengruppe.title %></h1>
<p>
<%= @themengruppe.text %>