{% load cache %} {% load util %} {% load smileys %} {% load filter_img %} {% cache 3600 active_user_content user.id %} {% if content_type == 'sound' %} {% with content as sound %} {% include "accounts/player.html" %} {% endwith %} {% endif %} {% if content_type == 'post' %} post in {{content.thread.title|safe}} {{content.body|replace_img|smileys|safe|linebreaks|truncatewords:30}} {% endif %} {% if content_type == 'comment' %} comment in {{content.sound.original_filename|truncate_string:28}} {{content.comment.sound}} {{content.comment|replace_img|smileys|safe|linebreaks}} {% endif %} {% endcache %}