{% for (k, n) in kinds %}<ahref="{{ q.with("kind", k) }}"{% if &q.kind == k %} class="on"{% endif %}>{{ k }} <spanclass="small mute">{{ n }}</span></a>{% endfor %}{% endif %}
{% for (r, n) in repos %}<ahref="{{ q.with("repo", r) }}"{% if &q.repo == r %} class="on"{% endif %}>{{ r }} <spanclass="small mute">{{ n }}</span></a>{% endfor %}{% endif %}
<formmethod="post"action="/notifications/read"><inputtype="hidden"name="_csrf"value="{{ shell.csrf }}"><buttontype="submit"class="small">MARK ALL READ</button></form>
<pclass="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 %}</p>
{% if t.unread > 0 %}<buttonname="action"value="read"title="Mark the thread read">read</button>{% else %}<buttonname="action"value="unread"title="Mark the thread unread">unread</button>{% endif %}
40
{% if t.done %}<buttonname="action"value="undone"title="Back to the inbox">move to inbox</button>{% else %}<buttonname="action"value="done"title="Set the thread aside until something new happens">done</button>{% endif %}