websegura/_includes/tabla.njk

56 lines
2.0 KiB
Plaintext
Raw Normal View History

{% macro tabla(webs, 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 | sort(attribute = "score") %}
{% if web %}
{% if web.state === 'FINISHED' %}
<tr class="{{ web | color }}">
<td>
<a href="/w/{{ web.url | replace('.', '!') }}" title="{{ web | abbr }}">
{% if web.tests_passed < 5 %}☠️{% else %}{{ web.grade }}
{% endif %}
</a>
</td>
<td>
<a href="/w/{{ web.url | replace('.', '!') }}" title="{{ web.name }}">{{ web.url | replace("www.", "") }}</a>
</td>
<td>
{% if (web.twitter) and (web.score < 70) %}
<a class="twitter-share-button" href="https://twitter.com/intent/tweet/?text={{ 'Hola @' + web.twitter + '
2021-01-25 13:11:45 +01:00
🔒 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">
<span>Tuitear</span>
</a>
{% endif %}
</td>
</tr>
{% 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-02-08 20:56:54 +01:00
<p class="tablefooter">(Las notas se actualizan cada 3 días)</p>
{% endmacro %}