privacyguides.org/_includes/table-row-dns.html
Daniel Gray 78b49b2f4e
Revamping the Encrypted DNS page (#767)
Co-authored-by: lexi <git@lx-is.lol>
2022-03-31 17:56:32 +10:30

38 lines
2.4 KiB
HTML

{% assign data = include.data[1] %}
<th data-value="{{ data.title }}" class="align-middle">
<a href="{{ data.homepage }}">{{ data.title }}</a>
</th>
<td>
{% if data.privacy_policy.link %}<a
{% if data.privacy_policy.tooltip %}data-bs-toggle="tooltip" data-bs-placement="bottom" title='{{ data.privacy_policy.tooltip | escape }}'
{% endif %}href="{{ data.privacy_policy.link }}">
<span class="fad fa-external-link"></span>
</a>{% else %}
<span data-bs-toggle="tooltip" data-bs-placement="bottom" title='{{ data.privacy_policy.tooltip | escape }}' class="fad fa-info-circle"></span>{% endif %}
</td>
<td>{% if data.type.link %}<a
{% if data.type.tooltip %}data-bs-toggle="tooltip" data-bs-placement="bottom" title='{{ data.type.tooltip | escape }}'
{% endif %}href="{{ data.type.link }}">{{ data.type.name }}</a>
{% else %}{{ data.type.name }}{% endif %}
</td>
<td><ul class="list-unstyled mb-0">{%- for protocol in data.protocols -%}
<li>{{ protocol.name }}{% if protocol.tooltip %}
<span data-bs-toggle="tooltip" data-bs-placement="bottom" title='{{ protocol.tooltip | escape }}' class="fad fa-info-circle"></span>
{% endif %}</li>{%- endfor -%}</ul>
</td>
{% if data.logs.policy %}<td class="table-{{ data.logs.color | escape | default: 'warning' }}"><span class="text-nowrap">{% if data.logs.link %}
<a href="{{ data.logs.link }}"{% else %}<span{% endif %}
{% if data.logs.tooltip %}data-bs-toggle="tooltip" data-bs-placement="bottom" title='{{ data.logs.tooltip | escape }}'{% endif %}
>{{ data.logs.text | default: 'Yes' }}{% unless data.logs.link %}{% if data.logs.tooltip %} <span class="fad fa-info-circle"></span>{% endif %}{% endunless %}</{%- if data.logs.link -%}a{%- else -%}span{%- endif -%}>
</span>{% else %}<td class="table-success">No{% endif %}
</td>
<td
{% unless data.ecs.status %}data-value="No" class="table-success"> No <span title="Doesn't provide ECS" aria-hidden="true" class="fad text-red fa-times-circle"></span><span class="visually-hidden"></span>
{% else %}data-value="Yes" class="table-info"> {{ data.ecs.text }} <span title="Optionally provides ECS" aria-hidden="true" class="fad text-green fa-info-circle"></span><span class="visually-hidden"></span>{% endunless %}
</td>
<td>
{{ data.filtering | escape | default: '<em>Unknown?</em>' }}
{% if data.source %}<a href="{{ data.source }}">
<span class="fad fa-external-link"></span>
</a>{% endif %}
</td>