Skip to content

Commit 582e344

Browse files
author
Zane
committed
Article editor: images gallery
1 parent 6b1995e commit 582e344

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

‎templates/article/editor/images.html.twig

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22
<div id="tli-article-editor-image-gallery" class="col-lg-4 sticky-top overflow-auto mt-15">
33

44
{% embed 'parts/alert-chalkboard.html.twig' %}
5-
{% block alertStyle %}collapseee tli-images-guide{% endblock %}
5+
{% block alertStyle %}{% if Article.Images is empty %}collapse{% endif%} tli-images-guide{% endblock %}
66
{% block alertTitle %}Immagini caricate{% endblock %}
77
{% block alertBody %}Clicca o trascina un'immagine per inserirla nell'articolo{% endblock %}
88
{% endembed %}
99

1010
{% embed 'parts/alert-chalkboard.html.twig' %}
11-
{% block alertStyle %}collapseee tli-no-images-guide{% endblock %}
11+
{% block alertStyle %}{% if Article.Images is not empty %}collapse{% endif%} tli-no-images-guide{% endblock %}
1212
{% block alertTitle %}Nessuna immagine caricata{% endblock %}
1313
{% block alertBody %}Carica un'immagine per inserirla nell'articolo{% endblock %}
1414
{% endembed %}
1515

1616
<div class="row row-cols-2 g-1">
17-
1817
{% for Image in Article.Images %}
1918
<div class="col">
2019
<div class="ratio ratio-1x1">
@@ -23,9 +22,13 @@
2322
</div>
2423
</div>
2524
{% endfor %}
25+
</div>
2626

27+
<div class="sticky-bottom text-center mt-2">
28+
<button type="button" class="btn btn-primary">
29+
<i class="fa-solid fa-upload"></i> Carica immagini
30+
</button>
2731
</div>
2832

2933
</div>
3034
<!-- ARTICLE side column editor images gallery END -->
31-

0 commit comments

Comments
 (0)