fix: Update birthday avatar code
This commit is contained in:
parent
c858bb8122
commit
2e67a41c27
@ -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>
|
||||||
</span>
|
{% else %}
|
||||||
|
<span
|
||||||
|
class="avatar-frame standard-image"
|
||||||
|
style="{{ css_style }}"
|
||||||
|
title="{{ person.name }}">
|
||||||
|
{{ person.name[:1] }}
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 15px">
|
<div style="margin-top: 15px">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user