2021-01-17 21:25:13 +01:00
|
|
|
---
|
|
|
|
layout: base
|
|
|
|
pagination:
|
2021-02-01 23:05:25 +01:00
|
|
|
data: results
|
2021-01-17 21:25:13 +01:00
|
|
|
size: 1
|
2021-02-01 23:05:25 +01:00
|
|
|
alias: r
|
2021-02-01 23:26:35 +01:00
|
|
|
permalink: "w/{{ r }}/"
|
2021-01-17 21:25:13 +01:00
|
|
|
---
|
|
|
|
|
2021-02-01 23:05:25 +01:00
|
|
|
{% set result = results[r] %}
|
2021-02-02 14:06:07 +01:00
|
|
|
{% set history = results.history[r] %}
|
2021-02-01 23:05:25 +01:00
|
|
|
{% set url = r | replace("!", ".") %}
|
|
|
|
{% from "details.njk" import details %}
|
|
|
|
|
2021-03-20 14:40:18 +01:00
|
|
|
<!--
|
|
|
|
TODO iterate over all.json instead of using provincias/comunidades/global
|
|
|
|
that only contain a reduced set of fields (e.g. twitter_mentions is not included),
|
|
|
|
limiting the info that can be shown in the details page.
|
|
|
|
-->
|
|
|
|
|
2021-02-01 23:05:25 +01:00
|
|
|
{% for name, provincia in provincias %}
|
2021-03-20 14:40:18 +01:00
|
|
|
{% for web in provincia.webs %}
|
|
|
|
{% if web.url == url %}
|
|
|
|
{{ details(web, result, history, page.url, "p", name, provincia) }}
|
2021-02-01 23:05:25 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% for name, comunidad in comunidades %}
|
2021-03-20 14:40:18 +01:00
|
|
|
{% for web in comunidad.webs %}
|
|
|
|
{% if web.url == url %}
|
|
|
|
{{ details(web, result, history, page.url, "c", name, comunidad) }}
|
2021-02-01 23:05:25 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
|
2021-03-20 14:40:18 +01:00
|
|
|
{% for web in general.webs %}
|
|
|
|
{% if web.url == url %}
|
|
|
|
{{ details(web, result, history, page.url) }}
|
2021-02-01 23:05:25 +01:00
|
|
|
{% endif %}
|
2021-02-13 13:26:21 +01:00
|
|
|
{% endfor %}
|