diff --git a/views/header.html b/views/header.html
index e6298f9..71022e1 100644
--- a/views/header.html
+++ b/views/header.html
@@ -22,7 +22,12 @@
- {{ .UserInfo.Username }}
- honkers
-
- combos
+
- combos
+
+{{ range .Combos }}
+- {{ . }}
+{{ end }}
+
- tags
- about
- front
diff --git a/views/style.css b/views/style.css
index ac5ec76..164aef2 100644
--- a/views/style.css
+++ b/views/style.css
@@ -51,18 +51,18 @@ body > header p {
body > header span {
margin-left: 2em;
}
-header details {
+header > details {
background: $bg-page;
padding: 1em;
position: fixed;
top: 0;
display: inline;
}
-header details[open] {
+header > details[open] {
background: $bg-dark;
border: 1px solid $fg;
}
-header details li {
+header > details li {
margin: 1em 0em 1em 0em;
}
main {
diff --git a/web.go b/web.go
index f50bf5f..e6e4a1f 100644
--- a/web.go
+++ b/web.go
@@ -70,6 +70,11 @@ func getInfo(r *http.Request) map[string]interface{} {
templinfo["IconName"] = iconName
templinfo["UserInfo"] = u
templinfo["UserSep"] = userSep
+ if u != nil {
+ var combos []string
+ combocache.Get(u.UserID, &combos)
+ templinfo["Combos"] = combos
+ }
return templinfo
}
@@ -1101,7 +1106,6 @@ func showcombos(w http.ResponseWriter, r *http.Request) {
var combos []string
combocache.Get(userinfo.UserID, &combos)
templinfo := getInfo(r)
- templinfo["Combos"] = combos
err := readviews.Execute(w, "combos.html", templinfo)
if err != nil {
log.Print(err)