From feb5d9b74fa1e8454eaaf29afae3643c6d7c81f1 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 11 Nov 2022 22:02:43 -0700 Subject: Got up to incoming posts working --- templates/activities/_post.html | 19 +++++++++++++++++++ templates/activities/home.html | 15 +++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 templates/activities/_post.html create mode 100644 templates/activities/home.html (limited to 'templates/activities') diff --git a/templates/activities/_post.html b/templates/activities/_post.html new file mode 100644 index 0000000..ffd0032 --- /dev/null +++ b/templates/activities/_post.html @@ -0,0 +1,19 @@ +{% load static %} +
+ + {% if post.author.icon_uri %} + + {% else %} + + {% endif %} + +

+ {{ post.author.name_or_handle }} @{{ post.author.handle }} +

+ +
+ {{ post.safe_content }} +
+
diff --git a/templates/activities/home.html b/templates/activities/home.html new file mode 100644 index 0000000..9fe4bba --- /dev/null +++ b/templates/activities/home.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} +{% load crispy_forms_tags %} + +{% block title %}Home{% endblock %} + +{% block content %} + + {% crispy form form.helper %} + + {% for post in timeline_posts %} + {% include "activities/_post.html" %} + {% empty %} + No posts yet. + {% endfor %} +{% endblock %} -- cgit v1.2.3