Files
twofactorauth/_includes/exception.html
2014-05-26 23:08:20 -05:00

35 lines
1.0 KiB
HTML

{% if include.website.exceptions %}
{% capture html %}
<div class='header'>
Exceptions &amp; Restrictions
</div>
<div class='content'>
{% if include.website.exceptions.text %}
{{ include.website.exceptions.text }}
{% else %}
{% if include.website.exceptions.link %}
Click to see more info on the restrictions.
{% else %}
Some restrictions on 2FA for this site exist.
{% endif %}
{% endif %}
</div>
{% endcapture %}
{% if include.website.exceptions.link %}
<a class="popup exception"
href="/restrictions#{{ include.website.name | downcase | handle }}"
data-position="bottom center"
data-html="{{ html | strip_newlines }}">
<i class="warning red link icon"></i>
</a>
{% else %}
<span class="popup exception"
data-position="bottom center"
data-html="{{ html | strip_newlines }}">
<i class="warning red link icon"></i>
</span>
{% endif %}
{% endif %}