mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-12-04 20:47:27 +00:00
eed418477f
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.
20 lines
683 B
Django/Jinja
20 lines
683 B
Django/Jinja
<div
|
|
class="flex-1 flex items-center bg-black bg-opacity-20 rounded-lg bg-contain bg-no-repeat"
|
|
style="background-image: url('{{ weapon.detail.icon.url }}')"
|
|
>
|
|
<div
|
|
class="flex-1 p-4 flex flex-col items-end justify-center h-full space-y-1"
|
|
>
|
|
<div class="text-2xl">{{ weapon.detail.name }}</div>
|
|
<div class="star star-{{ weapon.detail.rarity }}"></div>
|
|
<div class="flex space-x-3 items-center">
|
|
<div class="italic">Lv.{{ weapon.level }}</div>
|
|
<div
|
|
class="rounded px-2 text-base {% if weapon.refinement == 5 %} bg-red-600 {% else %} bg-gray-600 {% endif %}"
|
|
>
|
|
精{{ weapon.refinement }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|