all repos — honk @ f863a151b08487a539f3ef40430bc8b961629534

my fork of honk

update mecount style in js
Anirudh Oppiliappan x@icyphox.sh
Thu, 21 Sep 2023 10:49:55 +0300
commit

f863a151b08487a539f3ef40430bc8b961629534

parent

4e67f1c3d2be4b3a1cead08eb695af7d8a6f7a1f

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

jump to
M views/header.htmlviews/header.html

@@ -25,7 +25,7 @@ {{ if .UserInfo }}

<nav> <ul class="easylinks"> <li><a id="homelink" href="/">home</a> - <li><a id="atmelink" href="/atme">@me<span style="padding-left:3px;margin:0;" id=mecount>{{ if .UserInfo.Options.MeCount }}({{ .UserInfo.Options.MeCount }}){{ end }}</span></a> + <li><a id="atmelink" href="/atme">@me<span id=mecount>{{ if .UserInfo.Options.MeCount }}({{ .UserInfo.Options.MeCount }}){{ end }}</span></a> <li><a href="/account">account</a> <li><a href="/honkers">honkers</a> <li><a href="/{{ .UserSep }}/{{ .UserInfo.Name }}">{{ .UserInfo.Name }}</a>
M views/honkpage.jsviews/honkpage.js

@@ -106,6 +106,7 @@

var mecount = document.getElementById("mecount") if (resp.MeCount) { mecount.innerHTML = resp.MeCount + mecount.style.width = "18px" } else { mecount.innerHTML = "" }