From c15380cd1109d646160e6d9880a8108aa2756a56 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 27 Oct 2020 12:10:32 +0100 Subject: [PATCH] Automatically populate list of coc reports and languages Use the new filter to list templates and auto-generate the set of links. --- templates/base/cocpage.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/base/cocpage.html b/templates/base/cocpage.html index cf311378..3c7b78ae 100644 --- a/templates/base/cocpage.html +++ b/templates/base/cocpage.html @@ -1,4 +1,5 @@ {%extends "base/page.html"%} +{%load pgfilters%} {%block contents%}
@@ -8,7 +9,9 @@

Translations

Committee

    @@ -16,8 +19,9 @@

Annual Reports

    -
  • 2019
  • -
  • 2018
  • +{% for t in "pages/about/policies/coc/reports"|list_templates|dictsortreversed:"lower" %} +
  • {{t}}
  • +{%endfor%}
-- 2.39.5