{% extends "base.html" %} {% from "_macros.html" import icon %} {% block title %}Notifications{% endblock %} {% block content %}

Notifications

{% if not notifications %}
{{ icon('bell') }}

No notifications yet.

{% else %} {% for n in notifications %} {% set link = url_for('tasks.detail', task_id=n.task_id) if n.task_id else url_for('notifications.inbox') %} {{ icon('check' if n.type == 'completed' else 'plus', 'ico-sm') }} {{ n.title }} {{ n.body }} {{ n.created_at | nicedatetime }} {% endfor %} {% endif %} {% endblock %}