themen scope+ fix search

This commit is contained in:
Andreas Stephanides
2014-10-21 13:29:42 +02:00
parent ba8a20c3d1
commit 42ecb7dbcb
4 changed files with 18 additions and 13 deletions

View File

@@ -34,8 +34,9 @@
<div class="span6">
<!--<b><%= I18n.t("themengruppe.themen") %></b>
--><ul>
<% themengruppe.themen.where(" (NOT hidelink) and ( NOT isdraft) ").order(:priority).reverse.each do |t| %>
-->
<ul>
<% themengruppe.themen.where(:hidelink=>false).where(:isdraft=>false).each do |t| %>
<li>
<%= render t %>
</li>