bookforge/templates/components/typography.html

27 lines
617 B
HTML
Raw Normal View History

2026-01-28 00:38:24 +01:00
{% import "components/dropdown.html" as dropdown %}
2026-01-23 13:56:30 +01:00
{% macro heading(title) %}
2026-01-28 00:38:24 +01:00
<div class="d-flex justify-content-between align-items-center">
<h1 class="mb-4">
{{ title }}
</h1>
{% if caller is defined %}
<div>
{{ caller() }}
</div>
{% endif %}
</div>
{% endmacro %}
{% macro book_heading(title, book, show = false) %}
<div class="d-flex justify-content-between align-items-center">
<h1 class="mb-4">
{{ title }}
</h1>
<div>
2026-01-30 18:23:54 +01:00
{{ dropdown::crud_dropdown_button(book, t!("common.actions"), "books", show) }}
2026-01-28 00:38:24 +01:00
</div>
2026-01-23 13:56:30 +01:00
</div>
2026-01-28 00:38:24 +01:00
{% endmacro %}