mirror of
https://github.com/simple-login/app.git
synced 2024-11-01 03:21:01 +01:00
cb7868bdca
* Add DJlint configuration * Initial reformat for djlint * Add template linting to CI * Add explanation for HTML template checks in CONTRIBUTING.md
13 lines
537 B
HTML
13 lines
537 B
HTML
<button class="btn btn-sm {% if contact.block_forward %}
|
|
text-primary {% else %} text-warning {% endif %}" hx-post="{{ url_for('dashboard.toggle_contact', contact_id=contact.id) }}" hx-swap="outerHTML">
|
|
{% if contact.block_forward %}
|
|
|
|
<i class="fe fe-play-circle"
|
|
data-toggle="tooltip"
|
|
title="Unblock sender"></i>
|
|
{% else %}
|
|
<i class="fe fe-pause-circle" data-toggle="tooltip" title="Block sender"></i>
|
|
{% endif %}
|
|
</button>
|
|
{% if toast_msg %}<script>toastr.success("{{ toast_msg }}");</script>{% endif %}
|