summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTyler Kennedy2022-12-04 11:27:42 -0500
committerGitHub2022-12-04 09:27:42 -0700
commit50868971f7a1ad62940a53cba44e62c2d37a053d (patch)
tree1ad6812559f08bd945be53cffe92356e9ac1dde6
parent8835fdee6b86118053840b69d49553b077d2d9f1 (diff)
downloadtakahe-50868971f7a1ad62940a53cba44e62c2d37a053d.tar.gz
takahe-50868971f7a1ad62940a53cba44e62c2d37a053d.tar.bz2
takahe-50868971f7a1ad62940a53cba44e62c2d37a053d.zip
Show time-since next to 'XYZ boosted' on the home timeline. (#93)
-rw-r--r--static/css/style.css7
-rw-r--r--templates/activities/home.html4
2 files changed, 11 insertions, 0 deletions
diff --git a/static/css/style.css b/static/css/style.css
index 637fc2f..0e37c71 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -968,6 +968,13 @@ table.metadata td.name {
margin-right: 4px;
}
+.boost-banner time {
+ float: right;
+ display: block;
+ color: var(--color-text-duller);
+ border-radius: 3px;
+}
+
.mention-banner::before {
content: "\0040";
font: var(--fa-font-solid);
diff --git a/templates/activities/home.html b/templates/activities/home.html
index 5171842..d574e2a 100644
--- a/templates/activities/home.html
+++ b/templates/activities/home.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load activity_tags %}
{% block title %}Home{% endblock %}
@@ -11,6 +12,9 @@
<a href="{{ event.subject_identity.urls.view }}">
{{ event.subject_identity.name_or_handle }}
</a> boosted
+ <time>
+ {{ event.subject_post_interaction.published | timedeltashort }} ago
+ </time>
</div>
{% include "activities/_post.html" with post=event.subject_post %}
{% endif %}