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 %}