diff options
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 %} |