all repos — honk @ 65b6bc8a0926c5433125249de518bc2c81b94572

my fork of honk

collapse the danger honks by default when logged out
Ted Unangst tedu@tedunangst.com
Wed, 22 Feb 2023 15:04:24 -0500
commit

65b6bc8a0926c5433125249de518bc2c81b94572

parent

8a2e602ea6e804ed06594f04186b515308093125

2 files changed, 7 insertions(+), 1 deletions(-)

jump to
M hfcs.gohfcs.go

@@ -407,6 +407,12 @@ }

h.Open = "" } } + } else { + for _, h := range honks { + if h.Precis != "" { + h.Open = "" + } + } } }
M views/honk.htmlviews/honk.html

@@ -52,7 +52,7 @@ {{ end }}

</header> <p> <details class="noise" {{ .Open }} > -<summary>{{ .HTPrecis }}</summary> +<summary>{{ .HTPrecis }}<p></summary> <p>{{ .HTPrecis }} <p class="content">{{ .HTML }} {{ with .Time }}