Files
Gardomatic/internal/web/templates/partials/view_toggle.tmpl
T
kleiax 904d14b64c
CI / test (push) Canceled after 0s
Initial commit
2026-09-12 22:22:17 +02:00

5 lines
754 B
Cheetah

{{define "view_toggle"}}<button type='button' class='view-toggle' data-view-toggle='{{.}}' aria-label='Zwischen Listen- und Kachelansicht wechseln' title='Ansicht wechseln'>
<svg class='view-toggle-grid-icon' viewBox='0 0 24 24' aria-hidden='true'><rect x='3' y='3' width='7' height='7' rx='1'/><rect x='14' y='3' width='7' height='7' rx='1'/><rect x='3' y='14' width='7' height='7' rx='1'/><rect x='14' y='14' width='7' height='7' rx='1'/></svg>
<svg class='view-toggle-list-icon' viewBox='0 0 24 24' aria-hidden='true'><rect x='3' y='4' width='4' height='4' rx='1'/><path d='M10 6h11'/><rect x='3' y='10' width='4' height='4' rx='1'/><path d='M10 12h11'/><rect x='3' y='16' width='4' height='4' rx='1'/><path d='M10 18h11'/></svg>
</button>{{end}}