From 704124157d073c146a0f61aac390cffa3c0c38e8 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sun, 13 Oct 2024 20:31:09 -0700 Subject: [PATCH] User Themes refactor Instead of fighting to override Bulma CSS classes, add user-theme-* classes for simpler styling. --- pkg/controller/account/profile.go | 3 +- web/templates/account/profile.html | 22 ++--- web/templates/partials/themes.html | 145 +++++++++++++---------------- 3 files changed, 79 insertions(+), 91 deletions(-) diff --git a/pkg/controller/account/profile.go b/pkg/controller/account/profile.go index 41f59d2..9121e2c 100644 --- a/pkg/controller/account/profile.go +++ b/pkg/controller/account/profile.go @@ -40,7 +40,8 @@ func Profile() http.HandlerFunc { } vars := map[string]interface{}{ - "User": user, + "User": user, + "IsExternalView": true, } if err := tmpl.Execute(w, r, vars); err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) diff --git a/web/templates/account/profile.html b/web/templates/account/profile.html index d52e293..3e305ce 100644 --- a/web/templates/account/profile.html +++ b/web/templates/account/profile.html @@ -2,7 +2,7 @@ {{define "content"}} {{template "profile-theme-style" .User}}
-
+
@@ -313,7 +313,7 @@
-