2021-01-27 22:43:53 +01:00
|
|
|
{% macro tabla(webs, results, path) %}
|
2021-01-25 13:11:45 +01:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th id="nota">Nota</th>
|
|
|
|
<th id="web">Sitio web</th>
|
|
|
|
<th id="share">¡Házselo saber!</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-02-02 21:21:13 +01:00
|
|
|
{% for web in webs | sort(attribute="url") %}
|
2021-01-25 13:11:45 +01:00
|
|
|
{% set security = results[web.url | replace(".", "!")] %}
|
2021-01-28 22:11:02 +01:00
|
|
|
{% if security %}
|
2021-02-02 22:00:15 +01:00
|
|
|
{% if security.state == 'FINISHED' %}
|
2021-01-25 13:11:45 +01:00
|
|
|
<tr class="{{ security | color }}">
|
|
|
|
<td>
|
2021-02-02 00:37:00 +01:00
|
|
|
<a href="/w/{{ web.url | replace(".", "!") }}" title="{{ security | abbr }}">{% if security.tests_passed < 5 %}☠️{% else %}{{ security.grade }}{% endif %}</a>
|
2021-01-25 13:11:45 +01:00
|
|
|
</td>
|
|
|
|
<td>
|
2021-02-01 23:26:35 +01:00
|
|
|
<a href="/w/{{ web.url | replace(".", "!") }}" title="{{ web.name }}">{{ web.url | replace("www.", "") }}</a>
|
2021-01-25 13:11:45 +01:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if (web.twitter) and (security.score < 70) %}
|
|
|
|
<a class="twitter-share-button" href="https://twitter.com/intent/tweet/?text={{ 'Hola @' + web.twitter + '
|
|
|
|
|
|
|
|
🔒 La seguridad de vuestra web y usuarios puede ser comprometida si no actualizáis vuestras conexiones seguras (HTTPS).
|
|
|
|
⚠️ ¡Por favor, revisadlo cuanto antes!
|
|
|
|
|
2021-01-29 01:35:56 +01:00
|
|
|
https://websegura.pucelabits.org'| urlEncode }}{{ path }}{{ '?pk_campaign=HazseloSaber&pk_source=twitter
|
2021-01-25 13:11:45 +01:00
|
|
|
|
|
|
|
#websegura /vía @PucelaBits' | urlEncode }}" target="_blank" rel="noopener" aria-label="Twitter">
|
|
|
|
<span class="icon brands fa-twitter">
|
2021-01-28 12:29:10 +01:00
|
|
|
<span>Tuitear</span>
|
2021-01-25 13:11:45 +01:00
|
|
|
</a>
|
2021-02-02 22:00:15 +01:00
|
|
|
|
2021-01-25 13:11:45 +01:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2021-02-02 22:00:15 +01:00
|
|
|
{% else %}
|
|
|
|
<tr class="unknown">
|
|
|
|
<td title="Pendiente de análisis">🕐</td>
|
|
|
|
<td>
|
|
|
|
{{ web.url | replace("www.", "") }}
|
|
|
|
</td>
|
|
|
|
<td> </td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
2021-01-28 22:11:02 +01:00
|
|
|
{% endif %}
|
2021-01-25 13:11:45 +01:00
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-01-28 12:29:10 +01:00
|
|
|
<p class="tablefooter">(Las notas se actualizan diariamente)</p>
|
2021-01-26 13:10:22 +01:00
|
|
|
{% endmacro %}
|