privacyguides.org/_includes/recommendation-card.html

29 lines
1.7 KiB
HTML
Raw Normal View History

2020-05-12 21:05:51 +02:00
<div class="card my-5">
<div class="card-body">
2021-05-03 20:09:01 +02:00
<div class="row p-3">
2020-05-12 21:05:51 +02:00
<div class="col-12 col-sm-4 col-md-3 text-center">
2021-05-03 20:09:01 +02:00
<img src="{{ item.logo }}" alt="{{ item.name }} logo" class="py-5 w-75">
2020-05-12 21:05:51 +02:00
</div>
2021-05-04 04:13:50 +02:00
<div class="col-12 col-sm-8 col-md-9 text-center text-md-start pb-4">
2021-05-03 20:09:01 +02:00
<h2>{{ item.title }}</h2>
2021-05-04 04:13:50 +02:00
{% if item.info %} <p class="badge rounded-pill bg-info"><i class="fad fa-info-circle"></i> {{ item.info }}</p>{% endif %}
{% if item.warning %} <p class="badge rounded-pill bg-warning"><i class="fad fa-exclamation-triangle"></i> {{ item.warning }}</p>{% endif %}
2021-05-03 20:09:01 +02:00
{{ item.description | markdownify }}
{% if item.downloads %}<p>{% for platform in item.downloads %}
<a href="{{ platform.url }}"><i class="{{ platform.icon }} fa-fw h2"></i></a>
{% endfor %}
</p>{% endif %}
{% if item.website or item.article %}<div class="pb-2">
2021-05-04 04:13:50 +02:00
{% if item.article %}<a href="{% link {{ item.article }} %}" class="btn btn-primary mt-1 me-1"><i class="fad fa-info-circle fa-fw"></i>
2021-05-03 20:09:01 +02:00
More Information</a>{% endif %}
2021-05-04 04:13:50 +02:00
{% if item.website %}<a href="{{ item.website }}" rel="noopener" class="btn btn-secondary mt-1 me-1"><i class="fad fa-external-link-square fa-fw"></i>
Visit {{ item.website | remove_first: "www." | split: "/" | slice: 2 }}</a>
{% if item.website_tor %}<a href="{{ item.website_tor }}" rel="noopener" class="btn btn-info mt-1 me-1" aria-label="Onion site" title="Visit {{ item.website_tor }} on Tor"><i aria-hidden="true" class="ptio-tor text-light"></i></a>
{% endif %}
{% endif %}
2021-05-03 20:09:01 +02:00
</div>{% endif %}
2020-05-12 21:05:51 +02:00
</div>
</div>
</div>
</div>