{% extends "_layouts/cp" %} {% set centered = true %} {% includeCssResource "css/account.css" %} {% if account is defined and account.id %} {% if account.id == user.id %} {% set heading = "My Account"|t %} {% set baseUrl = 'myaccount' %} {% else %} {% set name = account.fullName ? account.fullName : account.username %} {% set lastChar = name|slice(account.fullName|length-1) %} {% set heading = name ~ (lastChar|lower == "s" ? "’" : "’s") ~ ' ' ~ "Account"|t %} {% set baseUrl = 'users/' ~ account.id %} {% endif %} {% set title = heading ~ " - " ~ pageTitle %} {% else %} {% set heading = "Register a new user"|t %} {% set title = heading %} {% endif %} {% set header %}