Download this file
| 1 | {{/* estilo-switcher: the Oficina apps, then "All apps". Optional: it is |
| 2 | rendered only when Bar.Switcher is set, and an app with no hub |
| 3 | directory leaves it nil. Tiles are optional too; with none, the panel |
| 4 | is the "All apps" link alone. Data: chrome.Switcher. */}} |
| 5 | {{define "estilo-switcher"}}<details estilo-switcher name="estilo-menus"> |
| 6 | <summary estilo-bar-trigger aria-label="{{.Label}}">{{template "estilo-icon-grid"}}</summary> |
| 7 | <div estilo-menu estilo-switcher-panel> |
| 8 | {{- if .Apps}} |
| 9 | <div estilo-switcher-grid> |
| 10 | {{- range .Apps}} |
| 11 | <a estilo-switcher-app href="{{.Href}}"{{if .Current}} aria-current="true"{{end}}><img src="{{.Icon}}" alt="" width="32" height="32"><span>{{.Name}}{{if .Current}}<span estilo-visually-hidden> {{$.CurrentLabel}}</span>{{end}}</span></a> |
| 12 | {{- end}} |
| 13 | </div> |
| 14 | <hr> |
| 15 | {{- end}} |
| 16 | {{template "estilo-menu-item" .AllApps}} |
| 17 | </div> |
| 18 | </details>{{end}} |
| 19 | |