From 7dc99cec9b70845a5b932fd90e2cdb33bb877a6b Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 28 Aug 2023 22:56:19 -0400 Subject: [PATCH] csp requires classes not styles --- go.mod | 2 +- go.sum | 4 ++-- views/about.html | 8 ++++---- views/style.css | 8 +++++++- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 90cdf93..077f8c8 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( golang.org/x/crypto v0.12.0 golang.org/x/net v0.14.0 humungus.tedunangst.com/r/go-sqlite3 v1.1.3 - humungus.tedunangst.com/r/webs v0.7.6 + humungus.tedunangst.com/r/webs v0.7.7 ) require ( diff --git a/go.sum b/go.sum index e3ca8d3..9fba220 100644 --- a/go.sum +++ b/go.sum @@ -48,5 +48,5 @@ golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= humungus.tedunangst.com/r/go-sqlite3 v1.1.3 h1:G2N4wzDS0NbuvrZtQJhh4F+3X+s7BF8b9ga8k38geUI= humungus.tedunangst.com/r/go-sqlite3 v1.1.3/go.mod h1:FtEEmQM7U2Ey1TuEEOyY1BmphTZnmiEjPsNLEAkpf/M= -humungus.tedunangst.com/r/webs v0.7.6 h1:P+lve8d0zRp7Xlj4wN4LbVZ9umk5tQgej1su5856tr4= -humungus.tedunangst.com/r/webs v0.7.6/go.mod h1:ylhqHSPI0Oi7b4nsnx5mSO7AjLXN7wFpEHayLfN/ugk= +humungus.tedunangst.com/r/webs v0.7.7 h1:1IITkwf5T3Zv2mG0rzmORPVcXuP/YGoTPeh6uBpUkCo= +humungus.tedunangst.com/r/webs v0.7.7/go.mod h1:ylhqHSPI0Oi7b4nsnx5mSO7AjLXN7wFpEHayLfN/ugk= diff --git a/views/about.html b/views/about.html index 65bae2e..9c48090 100644 --- a/views/about.html +++ b/views/about.html @@ -5,10 +5,10 @@

-
version:{{ .HonkVersion }} -
memory:{{ printf "%.02f" .Sensors.Memory }}MB -
uptime:{{ printf "%.02f" .Sensors.Uptime }}s -
cputime:{{ printf "%.02f" .Sensors.CPU }}s +
version:{{ .HonkVersion }} +
memory:{{ printf "%.02f" .Sensors.Memory }}MB +
uptime:{{ printf "%.02f" .Sensors.Uptime }}s +
cputime:{{ printf "%.02f" .Sensors.CPU }}s

diff --git a/views/style.css b/views/style.css index cb2dae2..7c52719 100644 --- a/views/style.css +++ b/views/style.css @@ -389,9 +389,15 @@ li.details { display: none; } -.textright { +.text-left { + text-align: left; +} +.text-right { text-align: right; } +.text-center { + text-align: center; +} .font08em { font-size: 0.8em;