{% load activity_tags bleach_tags markdown_tags %}
{{ activity.type|capfirst }}
{% if submission_title %} updated {{ activity.submission.title }} {% endif %} {{ activity.message|markdown|bleach }} {% if not submission_title and activity|user_can_see_related:request.user %} {% with url=activity.related_object.get_absolute_url %} {% if url %} {{ activity.related_object }} {% endif %} {% endwith %} {% endif %}