All checks were successful
continuous-integration/drone/push Build is passing
23 lines
852 B
HTML
23 lines
852 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
<span><h1>{% block title %} Tasks {% endblock %}</h1></span> <a class="btn btn-primary" href="/task/new" role="button">New Task</a> <br> <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.strftime('%Y-%m-%d %I:%M %p') }}</p>
|
|
</div>
|
|
<hr>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock %} |