{% set color = member.get_palette() %}
<a class="button-links" href="{{ get_profile_url(member.username) }}">
  <span class="avatar {{ avatar_class }}" title="{{ member.full_name }}">
    {% if member.user_image %}
    <img class="avatar-frame standard-image" style="object-fit: cover;" src="{{ member.user_image }}" title="{{ member.full_name }}">
    </img>
    {% else %}
    <span class="avatar-frame standard-image" title="{{ member.full_name }}"
      style="background-color: var({{color[0]}}); color: var({{color[1]}});">
      {{ frappe.utils.get_abbr(member.full_name) }}
    </span>
    {% endif %}
  </span>
</a>
