Hello,
I have the following html flask code where it prints some images and a title, what I want is that if it does not print anything because the query does not return anything, a text appears and if there is content, it prints that content.
I’m trying a few things but it’s not working for me.
{% for repor in tiporepor %}
{% if repor|length %}
<div class="col-xl-4 col-md-6" data-aos="zoom-in" data-aos-delay="200">
<div class="service-item">
<div class="img">
<!-- <img src="{{ img_path }}" class="img-fluid" alt=""> -->
<img src="{{ url_for('static', filename=repor[5]) }}" class="img-fluid" alt="">
<!-- <img src="{{ url_for('static', filename='img/services-1.png') }}" class="img-fluid" alt=""> -->
</div>
<div class="details position-relative">
<div class="icon">
<i class="bi bi-activity"></i>
</div>
<a href="{{url_for('view_repor', id_repor=repor[0])}}" class="stretched-link">
<h3>{{repor[1]}}</h3>
</a>
<p>{{repor[4]}}</p>
</div>
</div>
</div><!-- End Service Item -->
{% else %}
<p>NO EXISTE NINGUN INFORME PARA TI EN ESTE APARTADO - VOLVER</p>
{% endif %}
{% endfor %}
thank you so much