From 11ff109d1e63ca9c21699381570abf8c45b39ddd Mon Sep 17 00:00:00 2001 From: Disco DeDisco Date: Fri, 8 May 2026 23:16:31 -0400 Subject: [PATCH] =?UTF-8?q?my=5Fposts:=20titles=20=E2=86=92=20@{handle}'s?= =?UTF-8?q?=20Posts=20+=20Posts=20by=20Others=20(view-side=20string=20buil?= =?UTF-8?q?d);=20applet-list=20link=20colour=20--terUser=20w.=20hover/acti?= =?UTF-8?q?ve=20shifting=20to=20--ninUser=20+=20--terUser=20glow=20halo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - billboard.views.my_posts adds owner_posts_title (f"@{handle}'s Posts") + others_posts_title ("Posts by Others") to context. handle = owner.username or owner.email matches the navbar @-handle pattern. - my_posts.html shell invocations use the new vars instead of in-template |add: filter chains. - SCSS .applet-list .applet-list-entry > a: base color rgba(var(--terUser), 1), text-decoration none, font-weight bold; on :hover/:active color shifts to rgba(var(--ninUser), 1) + text-shadow 0 0 0.55rem rgba(var(--terUser), 0.7) for the lift halo. transition: text-shadow 0.15s ease. Code architected by Disco DeDisco Git commit message Co-Authored-By: Claude Opus 4.7 (1M context) --- src/apps/billboard/views.py | 3 +++ src/static_src/scss/_billboard.scss | 10 ++++++++-- src/templates/apps/billboard/my_posts.html | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/apps/billboard/views.py b/src/apps/billboard/views.py index cef4075..bdc2de1 100644 --- a/src/apps/billboard/views.py +++ b/src/apps/billboard/views.py @@ -298,8 +298,11 @@ def my_posts(request, user_id): return redirect("/") if request.user.id != owner.id: return HttpResponseForbidden() + handle = owner.username or owner.email return render(request, "apps/billboard/my_posts.html", { "owner": owner, + "owner_posts_title": f"@{handle}'s Posts", + "others_posts_title": "Posts by Others", "page_class": "page-billposts", }) diff --git a/src/static_src/scss/_billboard.scss b/src/static_src/scss/_billboard.scss index 317fbec..76a720c 100644 --- a/src/static_src/scss/_billboard.scss +++ b/src/static_src/scss/_billboard.scss @@ -257,10 +257,16 @@ body.page-billposts { &--empty { opacity: 0.6; font-style: italic; } a { - color: inherit; + color: rgba(var(--terUser), 1); text-decoration: none; font-weight: bold; - &:hover { opacity: 0.85; } + transition: text-shadow 0.15s ease; + + &:hover, + &:active { + color: rgba(var(--ninUser), 1); + text-shadow: 0 0 0.55rem rgba(var(--terUser), 0.7); + } } } diff --git a/src/templates/apps/billboard/my_posts.html b/src/templates/apps/billboard/my_posts.html index c90d0a9..8a57124 100644 --- a/src/templates/apps/billboard/my_posts.html +++ b/src/templates/apps/billboard/my_posts.html @@ -9,7 +9,7 @@ {# Two applet-scroll sections — own posts + posts shared with me. #} {# Stack vertically in portrait, sit side-by-side in landscape (.--two-up).#}
- {% include "apps/applets/_partials/_applet-list-shell.html" with shell_title=owner|display_name|add:" posts" shell_items=owner.posts.all shell_item_template="apps/billboard/_partials/_my_posts_item.html" shell_empty="No posts yet." %} - {% include "apps/applets/_partials/_applet-list-shell.html" with shell_title="Shared with me" shell_items=owner.shared_posts.all shell_item_template="apps/billboard/_partials/_my_posts_item.html" shell_empty="Nothing shared yet." %} + {% include "apps/applets/_partials/_applet-list-shell.html" with shell_title=owner_posts_title shell_items=owner.posts.all shell_item_template="apps/billboard/_partials/_my_posts_item.html" shell_empty="No posts yet." %} + {% include "apps/applets/_partials/_applet-list-shell.html" with shell_title=others_posts_title shell_items=owner.shared_posts.all shell_item_template="apps/billboard/_partials/_my_posts_item.html" shell_empty="Nothing shared yet." %}
{% endblock content %}