{% load cache gravatar_tags humanize %}
{% for entry in newsfeed %}
{% if entry.news_type == "registration" %}
{% elif entry.news_type == "document" %}
{% with entry.related_object as document %}
{% include "documents/preview.html" %}
{% endwith %}
{% elif entry.news_type == "fork" %}
{% with entry.related_object as document %}
{% include "documents/preview.html" %}
{% endwith %}
{% elif entry.news_type == "comment" %}
{{ entry.related_object.body }}
{% elif entry.news_type == "star" %}
{% elif entry.news_type == "following" %}
{% endif %}
{% empty %}
Seems to empty your newsfeed. You may follow somebody to see more news.
{% endfor %}