add username to expanded menu
Ted Unangst tedu@tedunangst.com
Thu, 07 Nov 2019 17:54:10 -0500
2 files changed,
7 insertions(+),
1 deletions(-)
M
views/header.html
→
views/header.html
@@ -17,7 +17,7 @@ <body>
<header> {{ if .UserInfo }} <details id="topmenu"> -<summary>menu</summary> +<summary>menu<span> {{ .UserInfo.Username }}</span></summary> <ul> <li><a id="homelink" href="/">home</a> <li><a id="atmelink" href="/atme">@me</a>
M
views/style.css
→
views/style.css
@@ -75,6 +75,12 @@ border: 1px solid var(--fg);
margin-bottom: 1em; opacity: 1.0; } +header > details summary span { + display: none; +} +header > details[open] summary span { + display: inline; +} header > details li { margin: 1em 0em 1em 0em; }