22 lines
623 B
HTML
22 lines
623 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block header %}
|
|
<h1>{% block title %}Cycles{% endblock %}</h1><a class="action" href="{{ url_for('cycles.create') }}">New</a>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% for cycle in cycles %}
|
|
<article class="post">
|
|
<header>
|
|
<div>
|
|
<h1>{{ cycle['id'] }}</h1>
|
|
<div class="about">Started: {{ cycle['start_time'] }} and ended: {{ cycle['end_time'] }}</div>
|
|
</div>
|
|
</header>
|
|
<p class="body">Cycle Length: {{ cycle['cycle_length'] }} days.</p>
|
|
</article>
|
|
{% if not loop.last %}
|
|
<hr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endblock %} |