diff options
author | Mantas <11616378+mistermantas@users.noreply.github.com> | 2019-05-08 22:16:24 +0300 |
---|---|---|
committer | Mantas <11616378+mistermantas@users.noreply.github.com> | 2019-05-08 22:16:24 +0300 |
commit | f8b0da97d84c043576418b9d28f5d75d94d611aa (patch) | |
tree | 53fdf0a00d0eef957dfeee1a8617064dbf268253 /layouts/partials/index/components.html | |
parent | 81b078a04d0555de9658898d4da73e0ac83bd31c (diff) |
Categories working except for the arrow
Diffstat (limited to 'layouts/partials/index/components.html')
-rw-r--r-- | layouts/partials/index/components.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/partials/index/components.html b/layouts/partials/index/components.html index 392acb7..47da96c 100644 --- a/layouts/partials/index/components.html +++ b/layouts/partials/index/components.html @@ -13,8 +13,10 @@ {{ range $categories }} <div class="category"> {{ if not .untitled }} - <div class="bold" style="margin: 12px 0"> - {{ if .closed }}⯈{{ else }}⯆{{ end }} + <div class="bold padding clicky category__head" onclick="document.querySelector('#{{ .name | urlize }}').classList.toggle('hidden'); document.querySelector('#{{ .name | urlize }}-toggle').classList.toggle('hidden')"> + <span class="hide-without-js" id="{{ .name | urlize }}-toggle"> + {{ if .closed }}⯈{{ else }}⯆{{ end }} + </span> <b>{{ .name }}</b> @@ -35,7 +37,7 @@ {{ $categorySystems := where $systems "category" "=" .name }} - <div class="components"> + <div class="components {{ if .closed }}hidden{{ end }}" id="{{ .name | urlize }}"> {{ range $categorySystems }} {{ $activeComponentIssues := where $active "Params.affected" "intersect" (slice .name) }} |