From 14bf3f00aa61229779c0fae8cd36f1f234bc50ea Mon Sep 17 00:00:00 2001 From: Bat Date: Sat, 19 May 2018 08:53:51 +0100 Subject: [PATCH] Make post metadata look nicer --- src/routes/user.rs | 4 ++-- templates/posts/details.tera | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/routes/user.rs b/src/routes/user.rs index 4c7854d7..807168a8 100644 --- a/src/routes/user.rs +++ b/src/routes/user.rs @@ -8,8 +8,8 @@ use serde_json; use activity_pub::{ activity_pub, ActivityPub, ActivityStream, context, broadcast, Id, IntoId, - actor::Actor, - object::Object + inbox::Inbox, + actor::Actor }; use db_conn::DbConn; use models::{ diff --git a/templates/posts/details.tera b/templates/posts/details.tera index 22ca2c24..eeacafb9 100644 --- a/templates/posts/details.tera +++ b/templates/posts/details.tera @@ -9,11 +9,11 @@ {% endblock header %} {% block content %} -

{{ author.display_name }}

-
- {{ date | date(format="%B %e, %Y") }} -
-
+

+ Written by {{ author.display_name }} + — + {{ date | date(format="%B %e, %Y") }} +

{{ post.title }}

{{ post.content | safe }}