{#- The head of a community's discussions, on each of their views: the views as pills,
the one shown current, and starting a discussion. -#}
{% macro head(current) %}
{% set kw = {"community_id": g.community.slug} %}
{% for view, url, label in [
("latest", url_for("forum.index", **kw), _("Latest")),
("week", url_for("forum.index", filter="week", **kw), _("Most read this week")),
("archives", url_for("forum.archives", **kw), _("By month")),
("attachments", url_for("forum.attachments", **kw), _("Attachments")),
] %}