{% extends "base.html" %} {% block title %}Habits · cimple{% endblock %} {% block head %}{% endblock %} {% block content %}

Habits

{% if not archived and habits %}

{{ completed_today }} of {{ habits|length }} checked in today

{% endif %}
{% if not archived and habits %}New habit{% endif %} Export JSON

{{ days[0].strftime('%b %d')|replace(' 0', ' ') }}–{{ days[-1].strftime('%b %d, %Y')|replace(' 0', ' ') }}

Jump to a date
{% if archived %}{% endif %}
{% for habit in habits %}

{{ habit.name }}

{% if not archived %}{{ habit.current_streak }} current{% endif %} {{ habit.best_streak }} best
    {% for day in days %} {% set done = day in habit.completed_this_week %} {% set available = not archived and habit.started_on <= day <= today %}
  • {% if available %}
    {{ csrf_field() }}
    {% else %} {{ '✓' if done else '–' }} {% endif %}
  • {% endfor %}
Edit
{{ csrf_field() }}
{% else %}

{{ 'Archived habits and their check-ins appear here.' if archived else 'Add a habit to start checking in.' }}

{% endfor %}
{% endblock %}