aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/index
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/index')
-rw-r--r--layouts/partials/index/components.html8
-rw-r--r--layouts/partials/index/summary.html2
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