{% load static thumbnail timesince %} {% for action in actions %} {% with user=action.user %}
  • {% if action.target.image %} Image placeholder {% else %} Image placeholder {% endif %}

    {{ user.username }}

    {{ action.created|timesince }} پیش

    {% if action.verb == 'update' %} پروفایلش رو آپدیت کرد {% elif action.verb == 'follow' %} صفحه {{ action.target.user_to }} را دنبال کرد {% elif action.verb == 'like' %} پست {{ action.target.user.username }} را لایک کرد {% elif action.verb == 'share' %} پست گذاشت {% endif %}

  • {% if not forloop.last %}
  • {% endif %} {% endwith %} {% endfor %}