{% set eligible = user.getUsernameHistory ? (php.time - user.getUsernameHistory()[0].change_time) > 2592000 : true %}

You are {% if not eligible %}not {% endif %}eligible for a name change.

{% if user.getUsernameHistory %}Your last name change was {{ difference }}.{% else %}This is your first username change.{% endif %}

{% if eligible %}

Username

{% endif %}