summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activities/views/posts.py1
-rw-r--r--static/css/style.css5
-rw-r--r--templates/activities/_post.html21
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 %}
-<div class="post {% if reply %}reply{% endif %}" data-takahe-id="{{ post.id }}" _="on click go url {{ post.urls.view }}">
+<div class="post {% if reply %}reply{% endif %}" data-takahe-id="{{ post.id }}">
<a href="{{ post.author.urls.view }}">
<img src="{{ post.author.local_icon_url }}" class="icon">
</a>
- <time>
+ <time _="on click go url {% if link_original %}{{ post.url }}{% else %}{{ post.urls.view }}{% endif %} then halt">
{% if post.visibility == 0 %}
<i class="visibility fa-solid fa-earth-oceania" title="Public"></i>
{% elif post.visibility == 1 %}
@@ -19,9 +19,9 @@
<i class="visibility fa-solid fa-link-slash" title="Local Only"></i>
{% endif %}
{% if post.published %}
- <a href="{{ post.url }}" title="{{ post.published }}">{{ post.published | timedeltashort }}</a>
+ <a href="{% if link_original %}{{ post.url }}{% else %}{{ post.urls.view }}{% endif %}" title="{{ post.published }}">{{ post.published | timedeltashort }}</a>
{% else %}
- <a href="{{ post.url }}" title="{{ post.created }}">{{ post.created | timedeltashort }}</a>
+ <a href="{% if link_original %}{{ post.url }}{% else %}{{ post.urls.view }}{% endif %}" title="{{ post.created }}">{{ post.created | timedeltashort }}</a>
{% endif %}
</time>
@@ -30,19 +30,22 @@
{% include "activities/_reply.html" %}
{% include "activities/_like.html" %}
{% include "activities/_boost.html" %}
- {% if post.author == request.identity %}
- <a title="Menu" class="menu" _="on click toggle .enabled on the next <menu/>">
+ <a title="Menu" class="menu" _="on click toggle .enabled on the next <menu/> then halt">
<i class="fa-solid fa-caret-down"></i>
</a>
<menu>
+ <a href="{{ post.urls.view }}">
+ <i class="fa-solid fa-comment"></i> View Post &amp; Replies
+ </a>
+ {% if post.author == request.identity %}
<a href="{{ post.urls.action_edit }}">
<i class="fa-solid fa-pen-to-square"></i> Edit
</a>
<a href="{{ post.urls.action_delete }}">
<i class="fa-solid fa-trash"></i> Delete
</a>
+ {% endif %}
</menu>
- {% endif %}
</div>
{% endif %}
@@ -51,7 +54,7 @@
</a>
{% if post.summary %}
- <div class="summary" _="on click toggle .enabled then toggle .hidden on the next .content">
+ <div class="summary" _="on click toggle .enabled then toggle .hidden on the next .content then halt">
{{ post.summary }}
</div>
{% endif %}
@@ -75,4 +78,6 @@
{% endfor %}
</div>
{% endif %}
+
+ <a class="whole-box" href="{{ post.urls.view }}"></a>
</div>