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 | |
parent | 81b078a04d0555de9658898d4da73e0ac83bd31c (diff) |
Categories working except for the arrow
Diffstat (limited to 'layouts/partials/index')
-rw-r--r-- | layouts/partials/index/components.html | 8 | ||||
-rw-r--r-- | layouts/partials/index/summary.html | 2 |
2 files changed, 6 insertions, 4 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) }} diff --git a/layouts/partials/index/summary.html b/layouts/partials/index/summary.html index d8e3108..de6bceb 100644 --- a/layouts/partials/index/summary.html +++ b/layouts/partials/index/summary.html @@ -20,5 +20,5 @@ {{ end }}{{ end }}{{ end }} </strong> - <span class="summary__date float-right" onclick="location.reload()"></span> + <div class="summary__date clicky float-right" onclick="location.reload()"></div> </div>
\ No newline at end of file |