mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 01:44:25 +04:00
25 lines
1.0 KiB
HTML
25 lines
1.0 KiB
HTML
{% assign toast-id = include.toast-id | default: 'simple' %}
|
|
{% assign person-id = include.person-id | default: 2 %}
|
|
{% assign person = people[person-id] %}
|
|
<div class="toast {% if include.show %}show{% endif %}" id="toast-{{ toast-id }}" role="alert" aria-live="assertive" aria-atomic="true" data-bs-autohide="false">
|
|
{% unless include.hide-header %}
|
|
<div class="toast-header">
|
|
{% include "ui/avatar.html" person=person class="me-2" size="xs" %}
|
|
<strong class="me-auto">{{ person.full_name }}</strong>
|
|
<small>{{ include.date | default: '11 mins ago' }}</small>
|
|
<button type="button" class="ms-2 btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
|
|
</div>
|
|
{% endunless %}
|
|
<div class="toast-body">
|
|
{% if include.cookies %}
|
|
🍪 Our site uses cookies. By continuing to use our site, you agree to our Cookie Policy.
|
|
|
|
<div class="mt-2 pt-2 border-top">
|
|
<a href="#" class="btn btn-primary btn-sm">I understand</a>
|
|
</div>
|
|
{% else %}
|
|
{{ include.text | default: 'Hello, world! This is a toast message.' }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|