Skip to content

Commit b7ad76d

Browse files
committed
Deduplica tags de formato en destacados y quita línea blanca en Recursos
1 parent 8f750ee commit b7ad76d

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

ckanext/gobar_theme/templates/home/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,8 @@ <h2 class="gobar-section-title">Los más consultados</h2>
138138
</div>
139139
{% if pkg.resources %}
140140
<div class="gobar-featured-tags">
141-
{% for res in pkg.resources[:3] %}
142-
<span class="gobar-featured-tag">
143-
{{ res.format | upper if res.format else 'N/A' }}
144-
</span>
141+
{% for format in h.dict_list_reduce(pkg.resources, 'format')[:3] %}
142+
<span class="gobar-featured-tag">{{ format | upper }}</span>
145143
{% endfor %}
146144
</div>
147145
{% endif %}

ckanext/gobar_theme/templates/recursos/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% endblock %}
99

1010
{% block content %}
11-
<div class="main">
11+
<div class="main" style="padding: 0;">
1212
{# ── Hero full-width, fuera del .container de CKAN ── #}
1313
<section style="background-color: #383691; color: #fff; padding: 40px 0 32px;">
1414
<div class="container">

0 commit comments

Comments
 (0)