Rich flairs

This commit is contained in:
robrobinbin 2021-01-12 23:50:50 +01:00
parent a4d77926b6
commit d2314580a9

View File

@ -28,11 +28,5 @@
{%- endmacro %} {%- endmacro %}
{% macro render_flair(flair) -%} {% macro render_flair(flair) -%}
{% for flair_part in flair %} {% for flair_part in flair %}{% if flair_part.flair_part_type == "emoji" %}<span class="emoji" style="background-image:url('{{ flair_part.value }}')"></span>{% else if flair_part.flair_part_type == "text" %}<span>{{ flair_part.value }}</span>{% endif %}{% endfor %}
{% if flair_part.flair_part_type == "emoji" %}
<span class="emoji" style="background-image:url('{{ flair_part.value }}')"></span>
{% else if flair_part.flair_part_type == "text" %}
<span>{{ flair_part.value }}</span>
{% endif %}
{% endfor %}
{%- endmacro %} {%- endmacro %}