From 842b45839535594b248205f4905bb4ec837050b1 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 27 Nov 2022 14:25:09 -0700 Subject: Change how we link individual-post view --- activities/views/posts.py | 1 + static/css/style.css | 5 ++--- templates/activities/_post.html | 21 +++++++++++++-------- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/activities/views/posts.py b/activities/views/posts.py index 8fbe361..b9bdc7f 100644 --- a/activities/views/posts.py +++ b/activities/views/posts.py @@ -48,6 +48,7 @@ class Individual(TemplateView): [self.post_obj], self.request.identity, ), + "link_original": True, "replies": Post.objects.filter( models.Q( visibility__in=[ diff --git a/static/css/style.css b/static/css/style.css index 772d527..baddcea 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -694,13 +694,10 @@ h1.identity small { .post { margin-bottom: 20px; - overflow: hidden; - cursor: pointer; } .post.mini { font-size: 14px; - cursor: inherit; } .post.reply { @@ -747,6 +744,7 @@ h1.identity small { background-color: var(--color-bg-main); border-radius: 3px; padding: 3px 3px; + cursor: pointer; } .post time i { @@ -863,6 +861,7 @@ h1.identity small { .post .actions menu a i { margin-right: 4px; + width: 16px; } .boost-banner, diff --git a/templates/activities/_post.html b/templates/activities/_post.html index 7402765..1c3008b 100644 --- a/templates/activities/_post.html +++ b/templates/activities/_post.html @@ -1,12 +1,12 @@ {% load static %} {% load activity_tags %} -
+
-
{% endif %} @@ -51,7 +54,7 @@ {% if post.summary %} -
+
{{ post.summary }}
{% endif %} @@ -75,4 +78,6 @@ {% endfor %}
{% endif %} + +
-- cgit v1.2.3