pf2db/db_explorer/db_explorer/templates/_const.html
2021-11-17 11:12:31 +01:00

16 lines
609 B
HTML

{% macro _abase(url) -%}
<img class="action-icon" src="{{ url }}">
{%- endmacro %}
{% set afree = _abase(url_for("static", filename="activity/free.webp")) -%}
{% set aone = _abase(url_for("static", filename="activity/one.webp")) -%}
{% set atwo = _abase(url_for("static", filename="activity/two.webp")) -%}
{% set athree = _abase(url_for("static", filename="activity/three.webp")) -%}
{% set areaction = _abase(url_for("static", filename="activity/reaction.webp")) -%}
{% set actions = {
None: "",
0: afree,
1: aone,
2: atwo,
3: athree,
'r': areaction
} -%}