Compare commits
3 Commits
1876732d56
...
04f860e06a
Author | SHA1 | Date | |
---|---|---|---|
04f860e06a | |||
ba8935a3d3 | |||
41157d5205 |
@ -25,16 +25,16 @@
|
|||||||
<p class="card-text">{{ gallery.description | default('') }}</p>
|
<p class="card-text">{{ gallery.description | default('') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if gallery.reactions %}
|
||||||
<div class="card-footer text-body-secondary text-end">
|
<div class="card-footer text-body-secondary text-end">
|
||||||
{% if gallery.reactions %}
|
{% for reaction in gallery.reactions %}
|
||||||
{% for reaction in gallery.reactions %}
|
{# TODO: limit total number of reactions shown #}
|
||||||
{# TODO: limit total number of reactions shown #}
|
<span class="badge rounded-pill text-body">
|
||||||
<span class="badge rounded-pill">
|
<i class="bi-{{ reaction }}"></i>
|
||||||
<i class="bi-{{ reaction }}" style="color: black;"></i>
|
|
||||||
</span>
|
</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
9
test.py
9
test.py
@ -21,7 +21,7 @@ template_vars = {
|
|||||||
"bootstrap": {
|
"bootstrap": {
|
||||||
"src": "./templates/example/bootstrap.bundle.min.js",
|
"src": "./templates/example/bootstrap.bundle.min.js",
|
||||||
},
|
},
|
||||||
"theme": {"src": ".templates/example/color-modes.js"},
|
"theme": {"src": "./templates/example/color-modes.js"},
|
||||||
},
|
},
|
||||||
"css": {
|
"css": {
|
||||||
"bootstrap": {"src": "./templates/example/bootstrap.min.css"},
|
"bootstrap": {"src": "./templates/example/bootstrap.min.css"},
|
||||||
@ -73,7 +73,12 @@ template_vars = {
|
|||||||
"src": "https://files.c0defox.es/Pictures/arctic-fox.jpg",
|
"src": "https://files.c0defox.es/Pictures/arctic-fox.jpg",
|
||||||
"description": "An arctic fox :3",
|
"description": "An arctic fox :3",
|
||||||
"title": "fox",
|
"title": "fox",
|
||||||
"reactions": ["heart", "backpack3", "balloon", "bag-x"],
|
"reactions": [],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "https://files.c0defox.es/Pictures/arctic-fox.jpg",
|
||||||
|
"description": "An arctic fox :3",
|
||||||
|
"title": "fox",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user