{% load wagtailadmin_tags %} {% comment "text/markdown" %} Displays a user avatar using the avatar template Variables this template accepts: - `classname` - if present, adds classname to the root class list - `user` - A user object to use for the avatar image - `size` (string?) - small, large, square - `tooltip` (string?) - Modifier classes - `tooltip_html` (string?) - An HTML element to use for the tooltip content {% endcomment %} {% if tooltip_html %} {% endif %} {% if size == 'small' %} {% elif size == 'large' %} {% elif size == 'square' %} {% else %} {% endif %}