Use an include to list the yearly coc reportts
authorMagnus Hagander <magnus@hagander.net>
Wed, 12 Aug 2020 15:30:46 +0000 (17:30 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 12 Aug 2020 15:31:12 +0000 (17:31 +0200)
For some reason this was done with copy/paste before, but an include
seems much better.

templates/pages/about/policies/coc.html
templates/pages/about/policies/coc/_reportlist.html [new file with mode: 0644]
templates/pages/about/policies/coc/reports/2018.html
templates/pages/about/policies/coc/reports/2019.html

index 18c1d8cf2df28f92fc1f8c6f24939f199ad2c2ea..829289f30ad14d4b71f036e17122a5d27d441648 100644 (file)
 
     {% include "pages/about/policies/coc/_translations.html" %}
   </div>
-  <div class="col-lg-3">
-    <h1>Annual Reports</h1>
-    <ul>
-      <li><a href="/about/policies/coc/reports/2019/">2019</a></li>
-      <li><a href="/about/policies/coc/reports/2018/">2018</a></li>
-    </ul>
-  </div>
+{%include "pages/about/policies/coc/_reportlist.html" %}
 </div>
 {%endblock%}
diff --git a/templates/pages/about/policies/coc/_reportlist.html b/templates/pages/about/policies/coc/_reportlist.html
new file mode 100644 (file)
index 0000000..74bf525
--- /dev/null
@@ -0,0 +1,7 @@
+  <div class="col-lg-3">
+    <h1>Annual Reports</h1>
+    <ul>
+      <li><a href="/about/policies/coc/reports/2019/">2019</a></li>
+      <li><a href="/about/policies/coc/reports/2018/">2018</a></li>
+    </ul>
+  </div>
index 5fd98422c1fcd39a298d458aa429f7301ae38dfe..64306b0e81db1cfe6f6377dfe6eb4b50ae1f9f91 100644 (file)
     </ul>
     <p>We would like to thank the Core Team and the community members who have supported the adoption of the <a href="/about/policies/coc/">Code of Conduct</a>, and who continue to uphold the professional standards of the PostgreSQL Community.</p>
   </div>
-  <div class="col-lg-3">
-    <h1>Annual Reports</h1>
-    <ul>
-      <li><a href="/about/policies/coc/reports/2019/">2019</a></li>
-      <li><a href="/about/policies/coc/reports/2018/">2018</a></li>
-    </ul>
-  </div>
+{%include "pages/about/policies/coc/_reportlist.html" %}
 </div>
 {%endblock%}
index 3c19d08f5ef12ae1f770eb98eaea549cc75d67c4..a0d836ed13502ad334f200144ee8b65e4187e37f 100644 (file)
       We would like to thank the Core Team and the community members who have supported the adoption of the <a href="/about/policies/coc/">Code of Conduct</a>, and who continue to uphold the professional standards of the PostgreSQL Community.
     </p>
   </div>
-  <div class="col-lg-3">
-    <h1>Annual Reports</h1>
-    <ul>
-      <li><a href="/about/policies/coc/reports/2019/">2019</a></li>
-      <li><a href="/about/policies/coc/reports/2018/">2018</a></li>
-    </ul>
-  </div>
+{%include "pages/about/policies/coc/_reportlist.html" %}
 </div>
 {%endblock%}