my_posts: titles → @{handle}'s Posts + Posts by Others (view-side string build); applet-list link colour --terUser w. hover/active shifting to --ninUser + --terUser glow halo

- 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 <discodedisco@outlook.com>
Git commit message Co-Authored-By:
Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Disco DeDisco
2026-05-08 23:16:31 -04:00
parent 246e45e55d
commit 11ff109d1e
3 changed files with 13 additions and 4 deletions

View File

@@ -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",
})

View File

@@ -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);
}
}
}

View File

@@ -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).#}
<div class="applet-list-page applet-list-page--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." %}
</div>
{% endblock content %}