websegura/pages/web.njk

41 lines
1.0 KiB
Plaintext
Raw Normal View History

---
layout: base
pagination:
2021-02-01 23:05:25 +01:00
data: results
size: 1
2021-02-01 23:05:25 +01:00
alias: r
2021-02-01 23:26:35 +01:00
permalink: "w/{{ r }}/"
---
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 %}
<!--
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 %}
{% 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 %}
{% 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 %}
{% for web in general.webs %}
{% if web.url == url %}
{{ details(web, result, history, page.url) }}
2021-02-01 23:05:25 +01:00
{% endif %}
{% endfor %}