{% extends "base.html" %} {% block title %}Notifications{% endblock %} {% block content %}

Notifications {{ unread }} unread

{% if let Some(n) = notice %}

{{ n }}

{% endif %}
{% if threads.is_empty() %}

{% if q.view == "done" %}Nothing set aside.{% else if q.view == "unread" %}All read.{% else if !q.reason.is_empty() || !q.kind.is_empty() || !q.repo.is_empty() %}Nothing matches these filters.{% else %}Nothing yet. Watch a repository or take part in a thread and its events land here.{% endif %}

{% else %}
    {% for t in threads %} 0 %} class="unread"{% endif %} data-row-thread="{{ t.thread }}">
    {% if t.unread > 0 %}● {% endif %}{{ t.title }}

    {% if let Some(r) = t.repo %}{{ r }} · {% endif %}{{ t.kind }} · {{ t.actor }} · {% if t.count > 1 %} · {{ t.count }} updates{% if t.unread > 0 && t.unread < t.count %}, {{ t.unread }} new{% endif %}{% endif %} · {% if t.participating %}participating{% else %}watching{% endif %}

    {% if t.unread > 0 %}{% else %}{% endif %} {% if t.done %}{% else %}{% endif %}
    {% endfor %}
{% endif %}
{% endblock %}