Skip to content

Commit a1784ac

Browse files
committed
feat(admin): add user profile in admin view
1 parent ff61134 commit a1784ac

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% load i18n %}
2+
<div class="bg-base-200 bg-cover bg-no-repeat bg-center font-semibold flex items-center justify-center relative select-none text-important dark:bg-base-700 after:absolute after:inset-0 after:inset-ring after:inset-ring-base-800/10 dark:after:inset-ring-base-200/10 {% if size == "md" %} h-[34px] min-w-[34px] w-[34px] {% elif size == "sm" %} h-[30px] min-w-[30px] w-[30px] {% elif size == "xs" %} h-[26px] min-w-[26px] w-[26px] text-xs {% else %} h-[38px] min-w-[38px] w-[38px] {% endif %} {% if circle %}rounded-full after:rounded-full{% else %}rounded-default after:rounded-default{% endif %}"
3+
{% if user.profile.avatar %}style="background-image: url('{{ user.profile.avatar.url }}');"{% endif %}>
4+
{% if not user.profile.avatar %}{{ user.get_full_name.0|default:user.get_username.0|upper }}{% endif %}
5+
</div>

0 commit comments

Comments
 (0)