fix: Update birthday avatar code

This commit is contained in:
Suraj Shetty 2021-01-20 10:12:01 +05:30
parent c858bb8122
commit 2e67a41c27

View File

@ -1,12 +1,21 @@
<div class="gray-container text-center"> <div class="gray-container text-center">
<div> <div>
{% for person in birthday_persons %} {% for person in birthday_persons %}
<span class="avatar avatar-small " title="Mitali"> {% if person.image %}
<span class="avatar-frame standard-image" style="{% if person.image %}background-image: url({{person.image}}); {% endif %} margin-right: 5px;" <img
title={{person.name}}> class="avatar-frame standard-image"
{% if not person.image %} {{ person.name[:1] }} {% endif %} src="{{ person.image }}"
style="{{ css_style }}"
title="{{ person.name }}">
</span> </span>
{% else %}
<span
class="avatar-frame standard-image"
style="{{ css_style }}"
title="{{ person.name }}">
{{ person.name[:1] }}
</span> </span>
{% endif %}
{% endfor %} {% endfor %}
</div> </div>
<div style="margin-top: 15px"> <div style="margin-top: 15px">