diff options
author | Andrew Godwin | 2022-11-05 14:17:27 -0600 |
---|---|---|
committer | Andrew Godwin | 2022-11-05 14:17:27 -0600 |
commit | d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7 (patch) | |
tree | dd356a933b8179a22e5da6e938acd96a175ac0d6 /templates/statuses | |
download | takahe-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.html | 10 | ||||
-rw-r--r-- | templates/statuses/home.html | 15 |
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 %} |