From ddd33aad91bf1de88e1704cf1dfdebb05e5800b7 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Thu, 4 Apr 2024 22:24:35 -0700 Subject: [PATCH] Change Log Buttons * Dark theme fixes to brighten notification colors on mobile * Add change log buttons around various pages to easily look into the history of an object in the database: * User profile page ('about user' and user table history links) * User friends page * User/Site gallery page (history of all (user) photos) * Admin insights page (comments, threads, and blocklist history) * Admin certification page (history of a user's cert photos) * Comment history buttons on forums and photos --- web/static/css/dark-theme.css | 9 +++ web/templates/account/friends.html | 8 +++ web/templates/account/profile.html | 83 ++++++++++++++++---------- web/templates/account/search.html | 2 +- web/templates/admin/certification.html | 7 +++ web/templates/admin/user_actions.html | 47 +++++++++++++-- web/templates/base.html | 7 +-- web/templates/forum/thread.html | 12 +++- web/templates/photo/gallery.html | 10 ++++ web/templates/photo/permalink.html | 33 +++++++++- 10 files changed, 172 insertions(+), 46 deletions(-) diff --git a/web/static/css/dark-theme.css b/web/static/css/dark-theme.css index 17cae7d..907b951 100644 --- a/web/static/css/dark-theme.css +++ b/web/static/css/dark-theme.css @@ -23,8 +23,17 @@ .nonshy-navbar-notification-tag.is-warning { background-color: rgb(248, 223, 98) !important; + color: rgb(26, 0, 5) !important; } +/* force lit-up notification buttons (on the mobile top nav, e.g. new Messages/Friends) + to show as a bright bulma is-warning style (.tag.is-warning) */ +.nonshy-navbar-notification { + background-color: rgb(248, 223, 98) !important; + color: rgb(26, 0, 5) !important; +} + + .has-text-dark { /* note: this css file otherwise didn't override this, dark's always dark, brighten it! */ color: #b5b5b5 !important; diff --git a/web/templates/account/friends.html b/web/templates/account/friends.html index fe7b81f..1143ab8 100644 --- a/web/templates/account/friends.html +++ b/web/templates/account/friends.html @@ -69,6 +69,14 @@
Found {{.Pager.Total}} friend{{Pluralize64 .Pager.Total}} (page {{.Pager.Page}} of {{.Pager.Pages}}). + + + {{if .CurrentUser.IsAdmin}} + + + Change Log + + {{end}}
diff --git a/web/templates/account/profile.html b/web/templates/account/profile.html index 7f95f2f..219951a 100644 --- a/web/templates/account/profile.html +++ b/web/templates/account/profile.html @@ -542,43 +542,60 @@

- Admin Actions + Admin

{{end}} diff --git a/web/templates/account/search.html b/web/templates/account/search.html index 52847db..0573c3e 100644 --- a/web/templates/account/search.html +++ b/web/templates/account/search.html @@ -259,7 +259,7 @@ {{if $Root.FriendMap.Get .ID}}
- + Friends diff --git a/web/templates/admin/certification.html b/web/templates/admin/certification.html index fd1b3a4..0c4caf7 100644 --- a/web/templates/admin/certification.html +++ b/web/templates/admin/certification.html @@ -158,6 +158,13 @@
+ +
+ + + Change Log + +