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 +++++++++++++++
templates/identity/view.html | 6 +++---
templates/statuses/_status.html | 12 ------------
templates/statuses/home.html | 15 ---------------
5 files changed, 37 insertions(+), 30 deletions(-)
create mode 100644 templates/activities/_post.html
create mode 100644 templates/activities/home.html
delete mode 100644 templates/statuses/_status.html
delete mode 100644 templates/statuses/home.html
(limited to 'templates')
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 %}
diff --git a/templates/identity/view.html b/templates/identity/view.html
index d82543e..916bee2 100644
--- a/templates/identity/view.html
+++ b/templates/identity/view.html
@@ -39,9 +39,9 @@
{% endif %}
- {% for status in statuses %}
- {% include "statuses/_status.html" %}
+ {% for post in posts %}
+ {% include "activities/_post.html" %}
{% empty %}
- No statuses yet.
+ No posts yet.
{% endfor %}
{% endblock %}
diff --git a/templates/statuses/_status.html b/templates/statuses/_status.html
deleted file mode 100644
index b501abc..0000000
--- a/templates/statuses/_status.html
+++ /dev/null
@@ -1,12 +0,0 @@
-