]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/emissions/emission_detail.html
use haystack to fill a 'related' section down in the page
[panikweb.git] / panikweb_templates / templates / emissions / emission_detail.html
index dd08f7e638e5a895088778537abfd5599c87c3ed..945d6c016c646e6df2f72dea47dcc5e082bd426c 100644 (file)
        </div>
 </div>
 {% endblock %}
-{% block related %}
-       {% if related %}
-               <div class="padded">
-                       <div class="wrapper">
-                               <h2>Related</h2>
-                               <ul class="custom columns list">
-                               {% for result in related %}
-                                       <li class="item {% if episode.emission.categories.all.count = 0 %}nocat{% endif %} {% for category in episode.emission.categories.all %} {{ category|slugify }}{% endfor %}">
-                                               {% search_result_template result %}                     
-                                       </li>
-                               {% endfor %}
-                               </ul>
-                       </div>
-               </div>          
-       {% endif %}                     
-{% endblock %}
+
 {% block links %}
 {% endblock %}
+
+{% block related %}
+{% related_objects object=emission %}
+{% endblock %}