From d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 5 Nov 2022 14:17:27 -0600 Subject: Initial commit (users and statuses) --- templates/statuses/_status.html | 10 ++++++++++ templates/statuses/home.html | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 templates/statuses/_status.html create mode 100644 templates/statuses/home.html (limited to 'templates/statuses') diff --git a/templates/statuses/_status.html b/templates/statuses/_status.html new file mode 100644 index 0000000..6e61fd9 --- /dev/null +++ b/templates/statuses/_status.html @@ -0,0 +1,10 @@ +
+

+ + {{ status.identity }} + {{ status.identity.short_handle }} + +

+ + {{ status.text | linebreaks }} +
diff --git a/templates/statuses/home.html b/templates/statuses/home.html new file mode 100644 index 0000000..e47ccfd --- /dev/null +++ b/templates/statuses/home.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} +{% load crispy_forms_tags %} + +{% block title %}Home{% endblock %} + +{% block content %} + + {% crispy form form.helper %} + + {% for status in statuses %} + {% include "statuses/_status.html" %} + {% empty %} + No statuses yet. + {% endfor %} +{% endblock %} -- cgit v1.2.3