Files
.githooks
.github
.vscode
common
games
fixtures
graphql
migrations
static
templates
cotton
button.html
button_group_button_sm.html
button_group_sm.html
button_old.html
button_start.html
gamelink.html
h1.html
popover.html
simple_table.html
table.html
table_header.html
table_row.html
table_td.html
partials
registration
add.html
add_edition.html
add_game.html
add_purchase.html
add_session.html
base.html
index.html
list_purchases.html
list_sessions.html
navbar.html
stats.html
view_game.html
templatetags
views
__init__.py
admin.py
apps.py
forms.py
models.py
schema.py
tests.py
urls.py
tests
timetracker
.dockerignore
.drone.yml
.editorconfig
.envrc
.gitignore
.pre-commit-config.yaml
CHANGELOG.md
Caddyfile
Dockerfile
Makefile
README.md
docker-compose.no-caddy.yml
docker-compose.yml
entrypoint.sh
manage.py
package.json
poetry.lock
pyproject.toml
shell.nix
tailwind.config.js
timetracker/games/templates/cotton/h1.html
Lukáš Kucharczyk b8258e2937 replace slippers with django-cotton
main reason: slippers cannot pass request via context inside its
components, making it annoying to use template takes that take request.
more reasons: not actively worked on, no named slots, having to define
components in components.yaml + new components do not get registered
without restarting server
2024-09-02 17:43:41 +02:00

9 lines
379 B
HTML

<h1 class="{% if badge %}flex items-center {% endif %}mb-4 text-3xl font-extrabold leading-none tracking-tight text-gray-900 dark:text-white">
{{ slot }}
{% if badge %}
<span class="bg-blue-100 text-blue-800 text-2xl font-semibold me-2 px-2.5 py-0.5 rounded dark:bg-blue-200 dark:text-blue-800 ms-2">
{{ badge }}
</span>
{% endif %}
</h1>