{% set canEdit = currentUser is not null and ( ( ctx.user.id == currentUser.id and currentUser.hasPermission(permission("EDIT_OWN_USER")) ) or currentUser.hasPermission(permission("EDIT_OTHER_USER")) ) %} {% set isOwnProfile = currentUser is not null and currentUser.id == ctx.user.id %} {% set sUserPossessive = isOwnProfile ? "Your Posts" : "%display_name%'s posts" %} {% set emailPending = isOwnProfile and ctx.user.pendingEmail is not null %} {% set title = ctx.user.displayName %} {% extends "base.twig" %} {% block content %}