all repos — honk @ 4436b79c634d52eb63b7eac9901384385e3485da

my fork of honk

add username to expanded menu
Ted Unangst tedu@tedunangst.com
Thu, 07 Nov 2019 17:54:10 -0500
commit

4436b79c634d52eb63b7eac9901384385e3485da

parent

0e04aa1293610c18c869aaf6cf32b078e9cf3e63

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

jump to
M views/header.htmlviews/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.cssviews/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; }