more stuff

This commit is contained in:
2022-11-12 21:28:13 -05:00
parent 82d45ea0ce
commit 7169bb11c9
7 changed files with 66 additions and 24 deletions

22
templates/tasks.html Normal file
View File

@@ -0,0 +1,22 @@
{% extends 'base.html' %}
{% block content %}
<span><h1>{% block title %} Tasks {% endblock %}</h1></span> <br>
<div>
{% for task in tasks %}
{% set createdTime = datetime.fromtimestamp(task.created_timestamp) %}
{% set createdTime = datetime.strptime(str(createdTime), '%Y-%m-%d %H:%M:%S') %}
<div>
<a href="/task/{{ task.id }}">
<p><b>{{ task.title }}</b> </p>
</a>
<b>
{{ task.description }}
</b>
<div>
<p>Created: {{ createdTime }}</p>
</div>
<hr>
</div>
{% endfor %}
{% endblock %}