websegura/pages/comunidad.njk

69 lines
1.7 KiB
Plaintext
Raw Normal View History

2021-01-29 00:01:50 +01:00
---
layout: base
pagination:
data: comunidades
size: 1
alias: comunidad
permalink: "c/{{ comunidad }}/"
2021-01-29 00:01:50 +01:00
---
{% set c = comunidades[comunidad] %}
<p id="breadcumbs">
<a href="/">España</a>
-
{{ c.name }}</p>
2021-02-05 19:43:09 +01:00
<h1>{{ c.name }}</h1>
<p class="subtitle">Analizamos sitios públicos de
{{ c.name }}
para saber si protegen la privacidad y seguridad de sus usuarios.</p>
2021-02-08 14:52:37 +01:00
<div class="score-container">
<div class="score-bar">
2021-02-14 17:13:49 +01:00
<div class="score-progress" data-score="{{ all | filterByTerritorioId(comunidad) | safeScore }}"></div>
2021-02-08 14:52:37 +01:00
</div>
2021-02-14 17:13:49 +01:00
<p>
<strong>{{ all | filterByTerritorioId(comunidad) | safeScore }}%</strong>
de las webs completamente seguras ({{ all | filterByTerritorioId(comunidad) | scoreGt(69) | length}}/{{ all | filterByTerritorioId(comunidad) | length}})</p>
2021-02-08 14:52:37 +01:00
</div>
<p class="button">
2021-02-05 13:30:19 +01:00
<a id="cta" href="#cta-featured">Ver quién no es seguro</a>
</p>
{% include "header.njk" %}
{% from "tabla.njk" import tabla %}
<section>
<div class="table-wrapper" id="resultados">
<h2>{{ c.name }}</h2>
{{ tabla(all | filterByTerritorioId(comunidad), path=page.url)}}
<p>
<a href="https://github.com/PucelaBits/websegura#a%C3%B1adir-una-web">+ Añadir una web nueva</a>
</p>
</div>
<h2>Provincias</h2>
2021-01-29 20:35:28 +01:00
<p>
{% for name, provincia in provincias %}
{% if provincia.comunidad == comunidad %}
<button class="provincia">
<a href="/p/{{ name }}">{{ provincia.name }}</a>
</button>
{% endif %}
{% endfor %}
2021-01-29 20:35:28 +01:00
</p>
2021-02-14 12:50:04 +01:00
{% if provincias | length < 50 %}
<p>
2021-02-14 12:50:04 +01:00
<small>
(<a href="https://github.com/PucelaBits/websegura#a%C3%B1adir-una-web">Ayúdanos a añadir otras provincias, ¡ya sólo faltan {{ 50 - provincias | length }}!</a>)
</small>
</p>
2021-02-14 12:50:04 +01:00
{% endif %}
2021-01-29 20:35:28 +01:00
2021-02-14 17:13:49 +01:00
</section>