{# By default the anchor_type is the same as the obj_type, eg 'user.unfollow' will anchor to '#user-info' #} {% set anchor_type = anchor_type or obj_type %} {% if following or am_following %} Unfollow {% else %} Follow {% endif %}