mirror of
https://github.com/PucelaBits/websegura.git
synced 2024-07-13 08:12:42 +02:00
56 lines
2.0 KiB
Plaintext
56 lines
2.0 KiB
Plaintext
{% macro tabla(webs, path) %}
|
|
<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 + '
|
|
|
|
🔒 La seguridad de vuestra web y usuarios puede ser comprometida si no actualizáis vuestras conexiones seguras (HTTPS).
|
|
⚠️ ¡Por favor, revisadlo cuanto antes!
|
|
|
|
https://websegura.pucelabits.org'| urlEncode }}{{ path }}{{ '?pk_campaign=HazseloSaber&pk_source=twitter
|
|
|
|
#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 %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<p class="tablefooter">(Las notas se actualizan cada 3 días)</p>
|
|
{% endmacro %}
|