ADD Archive documentos
This commit is contained in:
@ -6,7 +6,6 @@
|
||||
<section class="documentos">
|
||||
<div class="container">
|
||||
{% if documentos %}
|
||||
{#<pre>{{ dump(documentos) }}</pre>#}
|
||||
|
||||
{% for doc in documentos %}
|
||||
<div class="card mb-3">
|
||||
@ -44,11 +43,13 @@
|
||||
{{ __('Ver documento', 'Sindikatua') }}
|
||||
</a>
|
||||
|
||||
<a href="{{ doc.documento_url }}" download
|
||||
<a href="{{ doc.documento_url() }}" download
|
||||
class="btn me-2 btn-primary-cnt btn-xs" >
|
||||
<i class="bi bi-cloud-download-fill"></i>
|
||||
{{ __('Descargar', 'Sindikatua') }}
|
||||
</a>
|
||||
{% else %}
|
||||
no hay doc.documento_url
|
||||
|
||||
{% endif %}
|
||||
|
||||
@ -60,9 +61,22 @@
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div class="alert alert-info" role="alert">
|
||||
No hay documentos disponibles.
|
||||
<p>{{ __('No hay documentos', 'Sindikatua') }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<!-- PAGINATION -->
|
||||
{% set pagination = posts.pagination %}
|
||||
{% if pagination %}
|
||||
<div class="pagination-custom mt-5">
|
||||
{% include 'partials/pagination-custom.twig' %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-info" role="alert">
|
||||
No hay paginación.
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user