`{{ _('{name}'s Profile')|fe(name=user.profile.name) }}` is a more concise version of this that looks better on one line.