PaiGram/resources/genshin/player_card/constellations.jinja2
洛水居室 eed418477f
♻️ Rename HTML templates to use .jinja2 extension
Previously, all templates were named with the .html extension, which caused problems for editors to recognize the Jinja2 syntax used in them. In this commit, all templates have been renamed to use the .jinja2 extension to better reflect their use of Jinja2 and to improve editor recognition.
2023-05-09 19:19:32 +08:00

14 lines
495 B
Django/Jinja

<div class="flex-1 flex items-end justify-center">
<div class="flex pb-2">
{% for item in character.constellations %}
<div
class="w-16 h-16 flex items-center justify-center bg-contain bg-no-repeat bg-center
{%- if not item.unlocked %} grayscale opacity-75 {% endif %}"
style="background-image: url('img/talent-{{ character.element.name | lower }}.png')"
>
<img src="{{ item.icon.url }}" alt="" class="w-8 h-8" />
</div>
{% endfor %}
</div>
</div>