+ <% @themengruppen.each do |tg| %>
+
+
+
<%= tg.title%>
+
+ <% tg.themen.order(:priority).reverse.each do |t| %>
+ - <%= t.title %>
+
<% t.fragen.each do |f| %>
+ -
+ <%= f.title %>
+
<%= f.text %>
+
+ <% end %>
+
+
+ <% end %>
+
-
-<% t.fragen.each do |f| %>
-- <%= f.title %>
<%= f.text %>
-<% end %>
-
-
-
-<% end %>
-
-<% end %>
+
+ <% end %>
+
diff --git a/app/views/themengruppen/index.html.erb b/app/views/themengruppen/index.html.erb
index 95ae611..2bcb394 100644
--- a/app/views/themengruppen/index.html.erb
+++ b/app/views/themengruppen/index.html.erb
@@ -1,5 +1,5 @@
-
<%= link_to "FAQS", faqs_themengruppen_path %>
+
<%= link_to "FAQS", faqs_themengruppen_path,class: :btn %>
-
<% @themengruppen.each do |themengruppe| %>
diff --git a/app/views/themengruppen/index.html.erb~ b/app/views/themengruppen/index.html.erb~
index f4655e1..201480f 100644
--- a/app/views/themengruppen/index.html.erb~
+++ b/app/views/themengruppen/index.html.erb~
@@ -1,25 +1,35 @@
-
Listing themengruppen
+
+
<%= link_to "FAQS", faqs_themengruppen_path,class=btn %>
+
+ -
+ <% @themengruppen.each do |themengruppe| %>
+
+
+
+
+ <%= render themengruppe %>
+
+
+
+
+
+
+
+ <% end %>
+
+
-
-
- | Title |
- Text |
- |
- |
- |
-
+
+
+
-
-
-<%= link_to 'New Themengruppe', new_themagruppen_path %>
+<%= render :partial=>'layouts/pretty_toolbar' %>
+