mirror of
https://github.com/PucelaBits/websegura.git
synced 2024-07-13 08:12:42 +02:00
89 lines
3.5 KiB
Plaintext
89 lines
3.5 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(reverse=true, attribute = "score") %}
|
|
{% if web %}
|
|
{% if web.state === 'FINISHED' %}
|
|
<tr class="{{ web | color }}">
|
|
<td>
|
|
<a href="/w/{{ web.url | replace('.', '!') }}" title="{{ web | abbr }}">
|
|
{% if not web.url | dmarc_secure %}
|
|
<span class="phising" title="Vulnerable a suplantación de identidad de emails"><img src="/images/phising.png"></span>
|
|
{% endif %}
|
|
{% 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" {% if web.twitter_mentions > 0 %}data-popularity="high" title="Sitio destacado. Súmate a quienes ya han tuiteado"{% endif %}>
|
|
<span>Tuitear</span>
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr class="unknown">
|
|
<td title="El análisis de seguridad está pendiente">🕐</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 %}
|
|
|
|
{% macro tablaEmail(webs, path) %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th id="nota">Info</th>
|
|
<th id="web">Email</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for web in webs %}
|
|
{% if web %}
|
|
<tr class="{% if web.domain | dmarc_secure %}safe{% else %}danger{% endif %}">
|
|
<td>
|
|
<a href="/w/{{ web.domain | replace('.', '!') }}">
|
|
{% if not web.domain | dmarc_secure %}
|
|
<span class="phising" title="Vulnerable a suplantación de identidad de emails"><img src="/images/phising.png"></span>
|
|
{% else %}
|
|
<span title="Seguro frente a suplantación de identidad de emails">✉️</span>
|
|
{% endif %}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="/w/{{ web.domain | replace('.', '!') }}" title="{{ web.domain }}">@{{ web.domain | replace("www.", "") | replace("http:", "") | replace("https:", "") | replace("/", "")}}</a>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<p class="tablefooter">(Los análisis se actualizan cada 6 días)</p>
|
|
{% endmacro %}
|