feat: avatar widget

This commit is contained in:
pateljannat
2021-05-06 12:17:28 +05:30
parent 69b3f366f4
commit 413aeaccb1
5 changed files with 36 additions and 5 deletions

View File

@@ -76,9 +76,7 @@
{% for m in batch.get_mentors() %}
<div>
{% if m.photo_url %}
<img class="profile-photo" src="{{m.photo_url}}">
{% endif %}
{{ widgets.Avatar(member=m, avatar_class="avatar-medium" ) }}
<span class="instructor-title">{{m.full_name}}</span>
</div>
{% endfor %}