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>
|
|
|
|
{% for web in webs %}
|
|
|
|
{% set security = results[web.url | replace(".", "!")] %}
|
2021-01-28 22:11:02 +01:00
|
|
|
{% if security %}
|
2021-01-25 13:11:45 +01:00
|
|
|
<tr class="{{ security | color }}">
|
|
|
|
<td>
|
2021-01-28 19:37:25 +01:00
|
|
|
<a href="https://observatory.mozilla.org/analyze/{{ web.url }}" title="{{ security | abbr }}">{% if security.tests_passed < 5 %}⛔️{% else %}{{ security.grade }}{% endif %}</a>
|
2021-01-25 13:11:45 +01:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="https://{{ web.url }}" title="{{ web.name }}">{{ web.url | replace("www.", "") }}</a>
|
|
|
|
</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-27 22:43:53 +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>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
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 %}
|