summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/components/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/mod.rs b/src/components/mod.rs
index 5de2e67..f6b5785 100644
--- a/src/components/mod.rs
+++ b/src/components/mod.rs
@@ -15,7 +15,11 @@ pub fn Comment<'comment, 'base_data>(
) {
render::rsx! {
<li>
- <small><cite><UserLink user={comment.author.as_ref()} /></cite>{":"}</small>
+ <small>
+ <cite><UserLink user={comment.author.as_ref()} /></cite>
+ {" "}
+ <TimeAgo since={chrono::DateTime::parse_from_rfc3339(&comment.created).unwrap()} />
+ </small>
<Content src={comment} />
<div class={"actionList"}>
{