summaryrefslogtreecommitdiffstats
path: root/templates/statuses
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-05 14:17:27 -0600
committerAndrew Godwin2022-11-05 14:17:27 -0600
commitd77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7 (patch)
treedd356a933b8179a22e5da6e938acd96a175ac0d6 /templates/statuses
downloadtakahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.gz
takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.bz2
takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.zip
Initial commit (users and statuses)
Diffstat (limited to 'templates/statuses')
-rw-r--r--templates/statuses/_status.html10
-rw-r--r--templates/statuses/home.html15
2 files changed, 25 insertions, 0 deletions
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 @@
+<div class="status">
+ <h3 class="author">
+ <a href="{{ status.identity.urls.view }}">
+ {{ status.identity }}
+ <small>{{ status.identity.short_handle }}</small>
+ </a>
+ </h3>
+ <time>{{ status.created | timesince }} ago</time>
+ {{ status.text | linebreaks }}
+</div>
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 %}