{% load friendly_loader %} {% friendly_load relationship_tags %}

{% if_relationship request.user profile.user "following" %} {# they are following them, so show a "remove" url #} Unfollow {% else %} {# they are not following them, so show a link to start following #} Follow {% endif_relationship %}

{% if_relationship request.user profile.user "blocking" %} {# they are blocking them, so show a "remove" url #} Unblock {% else %} {# they are not blocking them, so show a link to start blocking #} Block {% endif_relationship %}